| 1 | <?php |
||
| 7 | final class LinkMeta implements MetaItem |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $rel; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $href; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $rel |
||
| 21 | * @param string $href |
||
| 22 | * |
||
| 23 | * @return MetaItem |
||
| 24 | */ |
||
| 25 | 2 | public static function create(string $rel, string $href) : MetaItem { |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 1 | public function render(array $extra = []) : string { |
|
| 35 | |||
| 36 | /** |
||
| 37 | * LinkMeta constructor. |
||
| 38 | * |
||
| 39 | * @param string $rel |
||
| 40 | * @param string $href |
||
| 41 | */ |
||
| 42 | 2 | public function __construct(string $rel, string $href) { |
|
| 46 | } |
||
| 47 |