| Total Complexity | 2 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class AgentServiceRegister extends AbstractGate |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $method = 'PUT'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $uri = '/agent/service/register'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Service |
||
| 29 | */ |
||
| 30 | private $service = null; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Service $service |
||
| 34 | * @return self |
||
| 35 | */ |
||
| 36 | public function service(Service $service) : self |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Promised|Result |
||
| 56 | */ |
||
| 57 | public function result() |
||
| 64 |