0
Eclipse爲我的Person對象添加了新的紅線。我想知道我的代碼有什麼問題。我是PHP的OOP新手。在類中創建新對象的問題
class Matcher{
private $user1= new Person($firstName, $lastName, $zipCode, $hairColor, $job, $eyeColor, $height, $weight, $dateOfBirth, $children, $education, $ethnicity, $faith, $language, $bodyType);
private $user2= Person;
function __construct($user1, $user2){
$this -> user1 = $user1;
$this -> user2 = $user2;
}
}
我強烈建議學習基本的PHP語法。 – Leri