1 | <?php |
||
8 | final class Endpoint implements Serializable |
||
9 | { |
||
10 | /** |
||
11 | * @var Binding |
||
12 | */ |
||
13 | private $binding; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $location; |
||
19 | |||
20 | /** |
||
21 | * @var null|string |
||
22 | */ |
||
23 | private $responseLocation; |
||
24 | |||
25 | /** |
||
26 | * @param Binding $binding |
||
27 | * @param string $location |
||
28 | * @param null|string $responseLocation |
||
29 | */ |
||
30 | public function __construct(Binding $binding, $location, $responseLocation = null) |
||
39 | |||
40 | /** |
||
41 | * @return Binding |
||
42 | */ |
||
43 | public function getBinding() |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getLocation() |
||
55 | |||
56 | /** |
||
57 | * @return null|string |
||
58 | */ |
||
59 | public function getResponseLocation() |
||
63 | |||
64 | /** |
||
65 | * @param Endpoint $other |
||
66 | * @return bool |
||
67 | */ |
||
68 | public function equals(Endpoint $other) |
||
74 | |||
75 | public static function deserialize($data) |
||
82 | |||
83 | public function serialize() |
||
91 | |||
92 | public function __toString() |
||
101 | } |
||
102 |