for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @author : Jagepard <[email protected]>
* @license https://mit-license.org/ MIT
*/
namespace Creational\LazyInitialization;
class MemoryUser implements UserInterface
{
private string $name;
* Sets the name
* -------------
* Устанавливает имя
*
* @param string $name
public function __construct(string $name)
$this->name = $name;
}
* Gets a name
* -----------
* Получает имя
* @return string
public function getName(): string
return $this->name;