FOF30\Hal\Link::__construct PHP Метод

__construct() публичный Метод

Public constructor of a FOFHalLink object
public __construct ( string $href, boolean $templated = false, string $name = null, string $hreflang = null, string $title = null )
$href string See $this->_href
$templated boolean See $this->_templated
$name string See $this->_name
$hreflang string See $this->_hreflang
$title string See $this->_title
    public function __construct($href, $templated = false, $name = null, $hreflang = null, $title = null)
    {
        if (empty($href)) {
            throw new InvalidLinkFormat();
        }
        $this->_href = $href;
        $this->_templated = $templated;
        $this->_name = $name;
        $this->_hreflang = $hreflang;
        $this->_title = $title;
    }