mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-29 03:00:15 +02:00
19 lines
297 B
PHP
19 lines
297 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';
|
|
}
|
|
}
|