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

View File

@ -2,5 +2,11 @@
class additionallyInfo
{
public $additionallyInfo;
public function __construct($b_day, $gender) {
$this->additionallyInfo = $b_day . ";" . $gender;
}
public function getAdditionallyInfo() {
return $this->additionallyInfo;
}
}

View File

@ -1,6 +1,13 @@
<?php
class contacnts
class contacts
{
public $contacts;
public function __construct($countryCode, $phoneNumber, $email){
$this->contacts = $countryCode . $phoneNumber . ";" . $email;
}
public function getContacts(){
return $this->contacts;
}
}

View File

@ -1,17 +1,14 @@
<?php
class fullName
{
public $surname;
public $name;
public $patronymic;
public function __construct($surname, $name, $patronymic)
{
$this->name = $surname . " " . $name . " " . $patronymic;
}
public function foolName()
public function getFoolName()
{
return $this->name;
}