/**
  * Constructor
  *
  * @param Href|string $href
  * @param string $type
  * @param string $title
  * @param string $hreflang
  * @param string $media
  */
 public function __construct($href = null, $type = null, $title = null, $hreflang = null, $media = null)
 {
     $attributes = array();
     $attributes[] = new Rel('alternate');
     if (null != $type) {
         $attributes[] = new Type($type);
     }
     if (null != $title) {
         $attributes[] = new Title($title);
     }
     if (null != $hreflang) {
         $attributes[] = new Hreflang($hreflang);
     }
     if (null != $media) {
         $attributes[] = new Media($media);
     }
     if (null != $href) {
         if ($href instanceof Href) {
             $attributes[] = $href;
         } else {
             $attributes[] = new Href($href);
         }
     }
     parent::__construct($attributes);
 }
 /**
  * Constructor
  *
  * @param Href|string $href
  */
 public function __construct($href)
 {
     $attributes = array();
     $attributes[] = new Rel('pingback');
     if ($href instanceof Href) {
         $attributes[] = $href;
     } else {
         $attributes[] = new Href($href);
     }
     parent::__construct($attributes);
 }
 /**
  * Constructor
  *
  * @param Href|string $href
  * @param string $type
  */
 public function __construct($href, $type = 'image/x-icon')
 {
     $attributes = array();
     $attributes[] = new Rel('icon');
     $attributes[] = new Type($type);
     if ($href instanceof Href) {
         $attributes[] = $href;
     } else {
         $attributes[] = new Href($href);
     }
     parent::__construct($attributes);
 }
 /**
  * Constructor
  *
  * @param Href|string $href
  * @param string $title
  */
 public function __construct($href, $title = null)
 {
     $attributes = array();
     $attributes[] = new Rel('first');
     if (null != $title) {
         $attributes[] = new Title($title);
     }
     if ($href instanceof Href) {
         $attributes[] = $href;
     } else {
         $attributes[] = new Href($href);
     }
     parent::__construct($attributes);
 }
 /**
  * Constructor
  *
  * @param Href|string $href
  * @param string $type
  * @param string $media
  * @param string $title
  * @param boolean $alternate
  */
 public function __construct($href, $type = 'text/css', $media = null, $title = null, $alternate = false)
 {
     $attributes = array();
     if (!$alternate) {
         $attributes[] = new Rel('stylesheet');
     } else {
         $attributes[] = new Rel('alternate stylesheet');
     }
     if (null != $type) {
         $attributes[] = new Type($type);
     }
     if ($href instanceof Href) {
         $attributes[] = $href;
     } else {
         $attributes[] = new Href($href);
     }
     if (null != $title) {
         $attributes[] = new Title($title);
     }
     if (null != $media) {
         $attributes[] = new Media($media);
     }
     parent::__construct($attributes);
 }