public function init() { parent::init(); if ($this->href === null) { throw new InvalidConfigException('The href attribute can not be empty and must be set trough configuration array.'); } }