1 | <?php |
||
8 | final class IndexedEndpoint implements Serializable |
||
9 | { |
||
10 | /** |
||
11 | * @var Endpoint |
||
12 | */ |
||
13 | private $endpoint; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | private $index; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $isDefault; |
||
24 | |||
25 | public function __construct(Endpoint $endpoint, $index, $isDefault = false) |
||
34 | |||
35 | /** |
||
36 | * @return Binding |
||
37 | */ |
||
38 | public function getBinding() |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getLocation() |
||
50 | |||
51 | /** |
||
52 | * @return null|string |
||
53 | */ |
||
54 | public function getResponseLocation() |
||
58 | |||
59 | /** |
||
60 | * @return int |
||
61 | */ |
||
62 | public function getIndex() |
||
66 | |||
67 | /** |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function isDefault() |
||
74 | |||
75 | /** |
||
76 | * @param IndexedEndpoint $other |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function equals(IndexedEndpoint $other) |
||
85 | |||
86 | public static function deserialize($data) |
||
97 | |||
98 | public function serialize() |
||
106 | |||
107 | public function __toString() |
||
116 | } |
||
117 |