| Server IP : 172.67.191.97 / Your IP : 104.23.243.197 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/pregrados/audiovisual/libraries/vendor/fig/link-util/src/ |
Upload File : |
<?php
namespace Fig\Link;
use Psr\Link\LinkInterface;
/**
* Class LinkTrait
*
* @inherits LinkInterface
*/
trait LinkTrait
{
use TemplatedHrefTrait;
/**
*
*
* @var string
*/
private $href = '';
/**
* The set of rels on this link.
*
* Note: Because rels are an exclusive set, we use the keys of the array
* to store the rels that have been added, not the values. The values
* are simply boolean true. A rel is present if the key is set, false
* otherwise.
*
* @var string[]
*/
private $rel = [];
/**
*
*
* @var string
*/
private $attributes = [];
/**
* {@inheritdoc}
*/
public function getHref()
{
return $this->href;
}
/**
* {@inheritdoc}
*/
public function isTemplated()
{
return $this->hrefIsTemplated($this->href);
}
/**
* {@inheritdoc}
*/
public function getRels()
{
return array_keys($this->rel);
}
/**
* {@inheritdoc}
*/
public function getAttributes()
{
return $this->attributes;
}
}