| Total Complexity | 3 |
| Total Lines | 71 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | #[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] |
||
| 12 | final class Link implements JsonSerializable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Relation to the target resource of the link |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $rel; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * A URI template, as defined by RFC 6570 |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $href; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * A method for the Link |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | public $method; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * A title for the link |
||
| 37 | * |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | public $title; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Crawl tag ID for crawl request |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | public $crawl; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string[] |
||
| 51 | * @psalm-return array{rel: string, href: string, method: string, title?: string} |
||
| 52 | */ |
||
| 53 | #[Override] |
||
| 66 | } |
||
| 67 | |||
| 68 | /** @param array{rel?: string, href?: string, method?: string, title?: string, crawl?:string} $values */ |
||
| 69 | public function __construct( |
||
| 84 |