mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-24 16:51:19 +02:00
18 lines
296 B
PHP
18 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';
|
|
}
|
|
}
|