Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class AgentCheckUpdater extends AbstractGate |
||
17 | { |
||
18 | public const PASS = 'pass'; |
||
19 | public const WARN = 'warn'; |
||
20 | public const FAIL = 'fail'; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $method = 'PUT'; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $uri = '/agent/check/:status/:cid'; |
||
31 | |||
32 | /** |
||
33 | * @param string $cid |
||
34 | * @param string $status |
||
35 | * @return static |
||
36 | */ |
||
37 | public function related(string $cid, string $status) : self |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return static |
||
46 | */ |
||
47 | public function signature() : self |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return Promised|Success|Failed |
||
55 | */ |
||
56 | public function result() |
||
61 |