for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tleckie\DesignPatterns\Memento;
/**
* Class State
*
* @package Tleckie\DesignPatterns\Memento
* @author Teodoro Leckie Westberg <[email protected]>
*/
class State
{
/** @var string */
private string $name;
private string $value;
* State constructor.
* @param string $name
* @param string $value
public function __construct(string $name, string $value)
$this->name = $name;
$this->value = $value;
}
* @return string
public function name(): string
return $this->name;
public function value(): string
return $this->value;