1 | <?php |
||
11 | final class Link implements \JsonSerializable |
||
12 | { |
||
13 | /** |
||
14 | * Relation to the target resource of the link |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | public $rel; |
||
19 | |||
20 | /** |
||
21 | * A URI template, as defined by RFC 6570 |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public $href; |
||
26 | |||
27 | /** |
||
28 | * A method for the Link |
||
29 | * |
||
30 | * @var string |
||
31 | * @Enum({"get", "post", "put", "patch", "delete"}) |
||
32 | */ |
||
33 | public $method = 'get'; |
||
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 | public function jsonSerialize() |
||
62 | } |
||
63 |