mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
46 lines
882 B
PHP
46 lines
882 B
PHP
<?php
|
|
|
|
/**
|
|
* (c) Meritoo.pl, http://www.meritoo.pl
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Meritoo\Test\Common\Collection\BaseCollection;
|
|
|
|
/**
|
|
* User. Element of collection.
|
|
*
|
|
* @author Meritoo <github@meritoo.pl>
|
|
* @copyright Meritoo <http://www.meritoo.pl>
|
|
*
|
|
* @internal
|
|
* @coversNothing
|
|
*/
|
|
final class User
|
|
{
|
|
/** @var string */
|
|
private $firstName;
|
|
|
|
/** @var string */
|
|
private $lastName;
|
|
|
|
public function __construct(string $firstName, string $lastName)
|
|
{
|
|
$this->firstName = $firstName;
|
|
$this->lastName = $lastName;
|
|
}
|
|
|
|
public function getFirstName(): string
|
|
{
|
|
return $this->firstName;
|
|
}
|
|
|
|
public function getLastName(): string
|
|
{
|
|
return $this->lastName;
|
|
}
|
|
}
|