| 1 | <?php |
||
| 16 | final class MigrationPlanList implements Countable |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | private $direction; |
||
| 20 | |||
| 21 | /** @var MigrationPlan[] */ |
||
| 22 | private $items = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param MigrationPlan[] $items |
||
| 26 | */ |
||
| 27 | 53 | public function __construct(array $items, string $direction) |
|
| 32 | |||
| 33 | 31 | public function count() : int |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return MigrationPlan[] |
||
| 40 | */ |
||
| 41 | 11 | public function getItems() : array |
|
| 45 | |||
| 46 | 30 | public function getDirection() : string |
|
| 50 | |||
| 51 | 8 | public function getFirst() : MigrationPlan |
|
| 59 | |||
| 60 | 4 | public function getLast() : MigrationPlan |
|
| 68 | } |
||
| 69 |