/** * Initializes a new instance of this class. * * @param string $firstName The first name of the person. * @param string $lastName The last name of the person. */ public function __construct($firstName, $lastName) { parent::__construct(); $this->setGender(self::GENDER_UNKNOWN); $this->setFirstName($firstName); $this->setLastName($lastName); }
public function __construct($name) { parent::__construct(); $this->name = $name; }