How to explicitly declare the type of a member var in a php class
php
Solution
The only way is to use documentation like so:
class MyClass {
/**
* @var OtherClass This is my other class
*/
private $other;
}
Problem
If I can explicitly declare the type of a member var (esp. other class as a member), them my IDE( such as Dreamweaver) can know the member's member. ``` class PHPClass(){ OtherClass $member_var; } ```