| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Link |
||
| 8 | { |
||
| 9 | use HasMeta; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $href; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $href |
||
| 18 | * @param \Swis\JsonApi\Client\Meta|null $meta |
||
| 19 | */ |
||
| 20 | public function __construct(string $href, Meta $meta = null) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getHref(): string |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | * |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function toArray() |
||
| 52 |