fix: classes renaming to correspond to UML diagram

This commit is contained in:
Mathieu
2024-04-18 11:23:38 +02:00
parent 13af79cc5e
commit 3a8af1c42f
6 changed files with 20 additions and 20 deletions

View 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';
}
}