我現在正在使用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