///////// **** MILK **** ///////////////
class Milk
{
public $moo;
public function Milk()
{
$this->moo = false;
}
}
///////// **** COFFEE **** ///////////////
class Coffee
{
public $mYummyumm;
public $mMilk;
public function Coffee()
{
$yummyumm = true;
$mMilk = new Milk();
}
public function getMilk()
{
return $this->mMilk;
}
}
//==================================
$myCoff = new Coffee();
$myCoff->->mMilk->... // <- intellisense win will pop up
$myCoff->getMilk()-> //<- no intellisense for mMilk there
Is there a way to make the "Intellisense" window pop up here?
Yeah... I know... Rapid PHP can't really know what getMilk() is returning as the return value can't be defined in the function.
I often help myself by doing something like this:
$bMilk = new Milk()
$bMilk = $myCoff->getMilk();
$bMilk->... //<- will have intellisense window now....
But this often leads to errors in some cases when forgetting to delete the "new" line afterwards.
Is there some less troublesome way?
By the way... is there any way to make the & vanish from intellisense added functions which return a reference?