1 | <?php declare(strict_types=1); |
||
16 | class Service implements ServiceInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $service; |
||
22 | |||
23 | /** |
||
24 | * @param string $specificationFile |
||
25 | * @param array $defaults |
||
26 | * @param string $cacheDir |
||
27 | * @param bool $debug |
||
28 | * |
||
29 | * @throws \IndraGunawan\RestService\Exception\InvalidSpecificationException |
||
30 | */ |
||
31 | 7 | public function __construct($specificationFile, array $defaults = [], $cacheDir = null, $debug = false) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 1 | public function getName() |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 3 | public function getEndpoint() |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 3 | public function getOperations() |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 3 | public function hasOperation($name) |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 3 | public function getOperation($name) |
|
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | 1 | public function getShapes() |
|
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | 1 | public function hasShape($name) |
|
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | 1 | public function getShape($name) |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 1 | public function getErrorShapes() |
|
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | 1 | public function hasErrorShape($name) |
|
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | 1 | public function getErrorShape($name) |
|
136 | } |
||
137 |