/**
* @param string $url
* @param ArrayCollection|string $label
* @param string $title
*/
public function __construct($url, $label = '', $title = '')
{
parent::__construct($url);
if (is_string($label)) {
$this->setChildren(new ArrayCollection([new Text($label)]));
} else {
$this->setChildren($label);
}
if (!empty($title)) {
$this->data['title'] = $title;
}
}