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