vendor/fig/link-util/src/Link.php line 8

Open in your IDE?
  1. <?php
  2. namespace Fig\Link;
  3. use Psr\Link\EvolvableLinkInterface;
  4. class Link implements EvolvableLinkInterface
  5. {
  6.     use EvolvableLinkTrait;
  7.     /**
  8.      * Link constructor.
  9.      *
  10.      * @param string $rel
  11.      *   A single relationship to include on this link.
  12.      * @param string $href
  13.      *   An href for this link.
  14.      */
  15.     public function __construct(string $rel ''string $href '')
  16.     {
  17.         if ($rel) {
  18.             $this->rel[$rel] = true;
  19.         }
  20.         $this->href $href;
  21.     }
  22. }