| 1 | <?php |
||
| 11 | class Timeout implements ConditionInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $timeout; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $timeout |
||
| 20 | */ |
||
| 21 | 3 | public function __construct($timeout) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 1 | public function getName() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return \DateInterval |
||
| 36 | */ |
||
| 37 | 2 | public function getDateInterval() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param object $subject |
||
| 44 | * @param \ArrayAccess $context |
||
| 45 | * |
||
| 46 | * @return \DateTime |
||
| 47 | */ |
||
| 48 | 2 | protected function getLastStateHasChangedDate($subject, \ArrayAccess $context) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @see MetaborStd\Statemachine.ConditionInterface::checkCondition() |
||
| 59 | */ |
||
| 60 | 2 | public function checkCondition($subject, \ArrayAccess $context) |
|
| 68 | } |
||
| 69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.