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