public function __construct($url, $label = '', $title = '') { parent::__construct($url); if (is_string($label)) { $this->appendChild(new Text($label)); } if (!empty($title)) { $this->data['title'] = $title; } }