mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-26 14:29:13 +02:00
19 lines
329 B
PHP
19 lines
329 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Behavioral\State;
|
|
|
|
class CreateOrder extends StateOrder
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->setStatus('created');
|
|
}
|
|
|
|
protected function done()
|
|
{
|
|
$order = new ShippingOrder();
|
|
static::$state = $order;
|
|
//$this->setStatus('shipping');
|
|
}
|
|
}
|