| Total Complexity | 8 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | abstract class Component implements Bootable |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var float |
||
| 18 | */ |
||
| 19 | private $ordered = .0; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | protected $priority = 50; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $prerequisites = []; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | protected $dependencies = []; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param float $position |
||
| 38 | */ |
||
| 39 | public function ordered(float $position) : void |
||
| 40 | { |
||
| 41 | $this->ordered = $position / 1000; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return float |
||
| 46 | */ |
||
| 47 | public function priority() : float |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | public function runnable() : bool |
||
| 72 |