[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/fig/link-util/src/ -> Link.php (source)

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


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer