This commit is contained in:
2024-05-20 15:11:17 +03:00
parent 6744d4e537
commit 8f07ea82bc
10 changed files with 161 additions and 35 deletions

View File

@ -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";
}
}