我现在正在使用PHP 5,并且我非常喜欢在PHP 5中使用OOP。我遇到了一个问题。我几乎没有什么课,功能也很少。很少有函数需要传递参数,这些参数是我自己编写的那些类的对象。参数不是我注意到的严格类型。有没有办法让它严格键入,以便在编译时我可以使用Intellisense?PHP对象及其功能
例子:
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
}
}
确定我需要给这一个尝试,会让你知道 – Neutralizer 2010-10-12 17:47:52