first
This commit is contained in:
28
src/Information.php
Normal file
28
src/Information.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace src;
|
||||
|
||||
class Information
|
||||
{
|
||||
public $foolName;
|
||||
public $gender;
|
||||
public $DateOfBirthday;
|
||||
public $countryCode;
|
||||
public $phoneNumber;
|
||||
public $email;
|
||||
|
||||
public function __construct($foolName, $gender, $DateOfBirthday, $countryCode, $phoneNumber, $email)
|
||||
{
|
||||
$this->foolName = $foolName;
|
||||
$this->gender = $gender;
|
||||
$this->DateOfBirthday = $DateOfBirthday;
|
||||
$this->countryCode = $countryCode;
|
||||
$this->phoneNumber = $phoneNumber;
|
||||
$this->email = $email;
|
||||
}
|
||||
public function writeInformation()
|
||||
{
|
||||
echo $this->foolName . ";" . $this->gender . ";" . $this->DateOfBirthday . ";" . $this->countryCode . $this->phoneNumber . ";" . $this->email . ";";
|
||||
}
|
||||
}
|
||||
|
19
src/fullName.php
Normal file
19
src/fullName.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace src;
|
||||
|
||||
class fullName
|
||||
{
|
||||
public $surname;
|
||||
public $name;
|
||||
public $patronymic;
|
||||
|
||||
public function __construct($surname, $name, $patronymic)
|
||||
{
|
||||
$this->name = $surname . " " . $name . " " . $patronymic;
|
||||
}
|
||||
public function foolName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user