@@ -22,58 +22,58 @@ public function __construct(BlockParentInterface $parent);
2222 /**
2323 * @return BlockParentInterface
2424 */
25- public function getParent ();
25+ public function getParent (): BlockParentInterface ;
2626
2727 /**
2828 * @return int
2929 */
30- public function size ();
30+ public function size (): int ;
3131
3232 /**
3333 * @param BlockInterface $block
3434 * @return bool
3535 */
36- public function contains (BlockInterface $ block );
36+ public function contains (BlockInterface $ block ): bool ;
3737
3838 /**
3939 * @param BlockInterface[] $blocks
4040 * @return bool
4141 */
42- public function containsAll (array $ blocks );
42+ public function containsAll (array $ blocks ): bool ;
4343
4444 /**
4545 * @return BlockInterface
4646 */
47- public function first ();
47+ public function first (): BlockInterface ;
4848
4949 /**
5050 * @return BlockInterface
5151 */
52- public function last ();
52+ public function last (): BlockInterface ;
5353
5454 /**
5555 * @param int $index
5656 * @return BlockInterface
5757 */
58- public function get ($ index );
58+ public function get (int $ index ): BlockInterface ;
5959
6060 /**
6161 * @param BlockInterface $block
6262 * @return int
6363 */
64- public function indexOf (BlockInterface $ block );
64+ public function indexOf (BlockInterface $ block ): int ;
6565
6666 /**
6767 * @param BlockInterface $block
6868 * @return bool
6969 */
70- public function isFirst (BlockInterface $ block );
70+ public function isFirst (BlockInterface $ block ): bool ;
7171
7272 /**
7373 * @param BlockInterface $block
7474 * @return bool
7575 */
76- public function isLast (BlockInterface $ block );
76+ public function isLast (BlockInterface $ block ): bool ;
7777
7878 /**
7979 * @param BlockInterface $block
@@ -104,14 +104,14 @@ public function prependAll(array $blocks);
104104 * @param int $index
105105 * @return $this
106106 */
107- public function insert (BlockInterface $ block , $ index );
107+ public function insert (BlockInterface $ block , int $ index );
108108
109109 /**
110110 * @param BlockInterface[] $blocks
111111 * @param int $index
112112 * @return $this
113113 */
114- public function insertAll (array $ blocks , $ index );
114+ public function insertAll (array $ blocks , int $ index );
115115
116116 /**
117117 * @param BlockInterface $block
@@ -153,17 +153,17 @@ public function replaceItem(BlockInterface $block, BlockInterface $replacedBlock
153153 * @param int $index
154154 * @return $this
155155 */
156- public function replace (BlockInterface $ block , $ index );
156+ public function replace (BlockInterface $ block , int $ index );
157157
158158 /**
159159 * @return BlockInterface
160160 */
161- public function removeFirst ();
161+ public function removeFirst (): BlockInterface ;
162162
163163 /**
164164 * @return BlockInterface
165165 */
166- public function removeLast ();
166+ public function removeLast (): BlockInterface ;
167167
168168 /**
169169 * @param BlockInterface[] $blocks
@@ -175,13 +175,13 @@ public function removeAll(array $blocks);
175175 * @param BlockInterface $block
176176 * @return BlockInterface
177177 */
178- public function removeItem (BlockInterface $ block );
178+ public function removeItem (BlockInterface $ block ): BlockInterface ;
179179
180180 /**
181181 * @param int $index
182182 * @return BlockInterface
183183 */
184- public function remove ($ index );
184+ public function remove (int $ index ): BlockInterface ;
185185
186186 /**
187187 * @return $this
0 commit comments