12 lines
245 B
PHP
12 lines
245 B
PHP
<?php
|
|
|
|
class StateNew extends BaseState
|
|
{
|
|
protected static $currentState = Reservation::STATUS_NEW;
|
|
|
|
public function startWork() {
|
|
$this->context->setState(Reservation::STATUS_WORK);
|
|
$this->context->saveStatus();
|
|
}
|
|
|
|
} |