third
This commit is contained in:
@ -4,25 +4,19 @@
|
||||
class Information
|
||||
{
|
||||
public $foolName;
|
||||
public $gender;
|
||||
public $DateOfBirthday;
|
||||
public $countryCode;
|
||||
public $phoneNumber;
|
||||
public $email;
|
||||
public $additionallyInfo;
|
||||
public $contacts;
|
||||
|
||||
public function __construct($foolName, $gender, $DateOfBirthday, $countryCode, $phoneNumber, $email)
|
||||
public function __construct($foolName, $additionallyInfo, $contacts)
|
||||
{
|
||||
$this->foolName = $foolName;
|
||||
$this->gender = $gender;
|
||||
$this->DateOfBirthday = $DateOfBirthday;
|
||||
$this->countryCode = $countryCode;
|
||||
$this->phoneNumber = $phoneNumber;
|
||||
$this->email = $email;
|
||||
$this->additionallyInfo = $additionallyInfo;
|
||||
$this->contacts = $contacts;
|
||||
}
|
||||
|
||||
public function fullInformation()
|
||||
public function getFullInformation()
|
||||
{
|
||||
return $this->foolName . ";" . $this->gender . ";" . $this->DateOfBirthday . ";" . $this->countryCode . $this->phoneNumber . ";" . $this->email . ";";
|
||||
return $this->foolName . ";" . $this->additionallyInfo . ";" . $this->contacts . ";\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user