NavigationItem: Do not provide a default for setProperties()
refs #5600
This commit is contained in:
parent
8a29660226
commit
1ef4a2f7d0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue