/** * __invoke * * Summaries for methods should use 3rd person declarative rather * than 2nd person imperative, beginning with a verb phrase. * * @param mixed $href DESCRIPTION * @param mixed $txt DESCRIPTION * @param mixed $attr DESCRIPTION * * @return mixed * * @access public */ public function __invoke($href, $txt = null, $attr = []) { $attr = array_merge_recursive($attr, ['href' => $href]); $txt = $txt ?: $this->shortenUrl($href); return parent::__invoke($txt, $attr, $this->tag); }