Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Personne
- {
- public $lastName;
- public $firstName;
- public $adress;
- public $birthday;
- public function getLastName(): String
- {
- return $this->lastname;
- }
- public function setLastName(String $lastName): Personne
- {
- $this->lastNane = $lastName;
- return $this;
- }
- public function getFirstName(): String
- {
- return $this->firstname;
- }
- public function setFirstName(String $firstName): Personne
- {
- $this->firstName = $firstName;
- return $this;
- }
- public function getAdress(): String
- {
- return $this->adress;
- }
- public function setAdress(String $adress): Personne
- {
- $this->adress = $adress;
- return $this;
- }
- public function getBirthday(): Int
- {
- return $this->birthday;
- }
- public function setBirthday(Int $birthday): Personne
- {
- $this->birthday = $birthday;
- return $this;
- }
- public function calculAge(): Int
- {
- $this->$birthday = (2018-$birthday);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment