mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 22:09:23 +02:00
17 lines
296 B
PHP
17 lines
296 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Behavioral\State;
|
|
|
|
class StateDone implements State
|
|
{
|
|
public function proceedToNext(OrderContext $context)
|
|
{
|
|
// there is nothing more to do
|
|
}
|
|
|
|
public function toString(): string
|
|
{
|
|
return 'done';
|
|
}
|
|
}
|