| 1 | <?php |
||
| 11 | class Rows extends BaseCollection |
||
| 12 | { |
||
| 13 | /** @var IRow[] */ |
||
| 14 | protected $components = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string|null $tag |
||
| 18 | * @param array $attributes |
||
| 19 | */ |
||
| 20 | 12 | public function __construct(string $tag = null, $attributes = []) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return IRow |
||
| 29 | * @throws LogicException |
||
| 30 | */ |
||
| 31 | 5 | public function current() |
|
| 32 | { |
||
| 33 | /** @var IRow $object */ |
||
| 34 | 5 | $object = parent::current(); |
|
| 35 | |||
| 36 | 5 | $this->verifyReturn($object, IRow::class); |
|
| 37 | |||
| 38 | 5 | return $object; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param int|null $offset |
||
| 43 | * @param IRow $value |
||
| 44 | * |
||
| 45 | * @throws InvalidArgumentException |
||
| 46 | */ |
||
| 47 | 12 | public function offsetSet($offset, $value) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @param int $offset |
||
| 56 | * |
||
| 57 | * @return IRow|null |
||
| 58 | * @throws LogicException |
||
| 59 | */ |
||
| 60 | 1 | public function offsetGet($offset) |
|
| 69 | } |
||
| 70 |