b0y-101 Mini Shell


Current Path : E:/www/risk/libraries/vendor/fig/link-util/src/
File Upload :
Current File : E:/www/risk/libraries/vendor/fig/link-util/src/Link.php

<?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($rel = '', $href = '')
    {
        if ($rel) {
            $this->rel[$rel] = true;
        }
        $this->href = $href;
    }
}

Copyright © 2019 by b0y-101