<?php
namespace Fig\Link;
use Psr\Link\EvolvableLinkInterface;
class Link implements EvolvableLinkInterface
{
use EvolvableLinkTrait;
/**
* Link constructor.
*
* @param string $rel
* A single relationship to include on this link.
* @param string $href
* An href for this link.
*/
public function __construct(string $rel = '', string $href = '')
{
if ($rel) {
$this->rel[$rel] = true;
}
$this->href = $href;
}
}