mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-26 01:31:20 +02:00
19 lines
308 B
PHP
19 lines
308 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Behavioral\State;
|
|
|
|
class OrderDone implements StateOrder
|
|
{
|
|
public function proceedToNext(ContextOrder $context): void
|
|
{
|
|
// there is nothing more to do
|
|
}
|
|
|
|
public function toString(): string
|
|
{
|
|
return 'done';
|
|
}
|
|
}
|