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

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