How to get Parents of ClassReference without using index (PHPStorm)?
*PhpStorm related
I am trying to implement PhpTypeProvider3.getType() method, where I evalute such expression
// PHP language
Address::find()->where('cond')->one()
//returns ActiveRecord class, but I want to make it return Address [extends ActiveRecord]
I want to eliminate any chance that this code collides with custom code, my solution is to make sure that Address inherits from a some parent (\\yii\\db\\ActiveRecord in my case).
Questions:
- Is there is any solution to make sure Address inherits from some class?
- Or may be there is another way, for example I can validate Address have some methods.
But how to find what methods have class referenced in ClassReference.
Please sign in to leave a comment.