mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 04:00:18 +02:00
18 lines
243 B
PHP
18 lines
243 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Behavioral\Memento;
|
|
|
|
class Memento
|
|
{
|
|
public function __construct(private State $state)
|
|
{
|
|
}
|
|
|
|
public function getState(): State
|
|
{
|
|
return $this->state;
|
|
}
|
|
}
|