Skip to content

Commit 79fd75b

Browse files
committed
Reorganise methods
1 parent 5f1f9f5 commit 79fd75b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MenuItem/SplitItem.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public function __construct(array $items = [])
4646
$this->setDefaultSelectedItem();
4747
}
4848

49-
public function setGutter(int $gutter) : void
49+
public function getGutter() : int
5050
{
51-
Assertion::greaterOrEqualThan($gutter, 0);
52-
$this->gutter = $gutter;
51+
return $this->gutter;
5352
}
5453

55-
public function getGutter() : int
54+
public function setGutter(int $gutter) : void
5655
{
57-
return $this->gutter;
56+
Assertion::greaterOrEqualThan($gutter, 0);
57+
$this->gutter = $gutter;
5858
}
5959

6060
public function addItem(MenuItemInterface $item) : self

0 commit comments

Comments
 (0)