我现在正在使用 PHP 5,我很乐意在 PHP 5 中使用 OOP。我遇到了一个问题。我的课程很少,里面的功能也很少。很少有函数需要传递参数,这些参数是我自己编写的那些类的对象。我注意到参数不是严格输入的。有没有办法让它严格输入,以便在编译时我可以使用 Intellisense?
例子:
class Test
{
public $IsTested;
public function Testify($test)
{
//I can access like $test->$IsTested but this is what not IDE getting it
//I would love to type $test-> only and IDE will list me available options including $IsTested
}
}