Skip to content

Commit

Permalink
Added order paramater to addDivider method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravitano committed Jun 17, 2015
1 parent ce036a4 commit fb5283b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Pingpong/Menus/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fb5283b

Please sign in to comment.