NavigationItem: Do not provide a default for setProperties()

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-02 15:26:07 +02:00
parent 8a29660226
commit 1ef4a2f7d0
1 changed files with 3 additions and 2 deletions

View File

@ -425,13 +425,13 @@ class NavigationItem implements Countable, IteratorAggregate
} }
/** /**
* Set properties for the item * Set this item's properties
* *
* @param array $properties * @param array $properties
* *
* @return $this * @return $this
*/ */
public function setProperties(array $properties = array()) public function setProperties(array $properties)
{ {
foreach ($properties as $name => $value) { foreach ($properties as $name => $value) {
$setter = 'set' . ucfirst($name); $setter = 'set' . ucfirst($name);
@ -439,6 +439,7 @@ class NavigationItem implements Countable, IteratorAggregate
$this->$setter($value); $this->$setter($value);
} }
} }
return $this; return $this;
} }