fourth
This commit is contained in:
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user