fourth
This commit is contained in:
1 parent
8f07ea82bc
commit
8254407aae
12 files changed
+122
-79
No files matched your search
@@ -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