fourth
This commit is contained in:
14
src/AdditionallyInfo.php
Normal file
14
src/AdditionallyInfo.php
Normal 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
17
src/Contacts.php
Normal 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
19
src/FullName.php
Normal 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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user