diff --git a/src/Pingpong/Menus/MenuItem.php b/src/Pingpong/Menus/MenuItem.php index 2ea729c6..0baada7a 100644 --- a/src/Pingpong/Menus/MenuItem.php +++ b/src/Pingpong/Menus/MenuItem.php @@ -192,11 +192,12 @@ public function add(array $properties) /** * Add new divider. * + * @param int $order * @return self */ - public function addDivider() + public function addDivider($order = null) { - $this->childs[] = static::make(array('name' => 'divider')); + $this->childs[] = static::make(array('name' => 'divider', 'order' => $order)); return $this; }