mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-30 16:29:23 +02:00
fix: classes renaming to correspond to UML diagram
This commit is contained in:
18
Behavioral/State/OrderDone.php
Normal file
18
Behavioral/State/OrderDone.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\Behavioral\State;
|
||||
|
||||
class OrderDone implements StateOrder
|
||||
{
|
||||
public function proceedToNext(ContextOrder $context)
|
||||
{
|
||||
// there is nothing more to do
|
||||
}
|
||||
|
||||
public function toString(): string
|
||||
{
|
||||
return 'done';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user