This commit is contained in:
2024-05-21 11:53:40 +03:00
parent 8f07ea82bc
commit 8254407aae
12 changed files with 122 additions and 79 deletions

14
src/AdditionallyInfo.php Normal file
View File

@ -0,0 +1,14 @@
<?php
class AdditionallyInfo
{
public $bDay;
public $gender;
public function __construct($bDay, $gender) {
$this->bDay = $bDay;
$this->gender = $gender;
}
public function getAdditionallyInfo() {
return $this->bDay . ";" . $this->gender;
}
}

17
src/Contacts.php Normal file
View File

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

19
src/FullName.php Normal file
View File

@ -0,0 +1,19 @@
<?php
class FullName
{
public $surname;
public $name;
public $patronymic;
public function __construct($surname, $name, $patronymic)
{
$this->surname = $surname;
$this->name = $name;
$this->patronymic = $patronymic;
}
public function getFoolName()
{
return $this->surname . ' ' . $this->name . ' ' . $this->patronymic;
}
}

View File

@ -1,12 +0,0 @@
<?php
class additionallyInfo
{
public $additionallyInfo;
public function __construct($b_day, $gender) {
$this->additionallyInfo = $b_day . ";" . $gender;
}
public function getAdditionallyInfo() {
return $this->additionallyInfo;
}
}

View File

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

View File

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