mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
refactored State pattern example
This commit is contained in:
10
Behavioral/State/State.php
Normal file
10
Behavioral/State/State.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Behavioral\State;
|
||||
|
||||
interface State
|
||||
{
|
||||
public function proceedToNext(OrderContext $context);
|
||||
|
||||
public function toString(): string;
|
||||
}
|
Reference in New Issue
Block a user