<?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; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
EvolvableLinkProviderTrait.php | File | 797 B | 0644 |
|
EvolvableLinkTrait.php | File | 1.59 KB | 0644 |
|
GenericLinkProvider.php | File | 806 B | 0644 |
|
Link.php | File | 497 B | 0644 |
|
LinkProviderTrait.php | File | 832 B | 0644 |
|
LinkTrait.php | File | 1.13 KB | 0644 |
|
Relations.php | File | 32.33 KB | 0644 |
|
TemplatedHrefTrait.php | File | 487 B | 0644 |
|