for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pageon\Html\Meta\Item;
use Pageon\Html\Meta\MetaItem;
final class LinkMeta implements MetaItem
{
/**
* @var string
*/
private $rel;
private $href;
* @param string $rel
* @param string $href
*
* @return MetaItem
public static function create(string $rel, string $href) : MetaItem {
return new self($rel, $href);
}
* @return string
public function render(array $extra = []) : string {
return "<link rel=\"{$this->rel}\" href=\"{$this->href}\">";
* LinkMeta constructor.
public function __construct(string $rel, string $href) {
$this->rel = $rel;
$this->href = $href;