! public function __construct($aName) { $this->name = (string) $aName; } ! public function getId() { return $this->id; } ! public function getName() { return $this->id; } }
$address; private $gender; ! public function getName() { return $this->name; } public function getAddress() { return $this->address; } public function getGender() { return $this->gender; } ! public function setName($name) { $this->name = $name; } public function setAddress($address) { $this->address = $address; } public function setGender($gender) { $this->gender = $gender; } }
$address; private $gender; ! public function getName() { return $this->name; } public function getAddress() { return $this->address; } public function getGender() { return $this->gender; } ! public function setName($name) { $this->name = $name; } public function setAddress($address) { $this->address = $address; } public function setGender($gender) { $this->gender = $gender; } }
$address; private $gender; ! public function getName() { return $this->name; } public function getAddress() { return $this->address; } public function getGender() { return $this->gender; } }
$address; private $gender; ! public function setName($name) { $this->name = $name; } public function setAddress($address) { $this->address = $address; } public function setGender($gender) { $this->gender = $gender; } }