| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class AccountCertificatesEndpoint extends ResourceEndpoint |
||
| 21 | { |
||
| 22 | /** @use ListEndpointTrait<Certificate> */ |
||
| 23 | use ListEndpointTrait; |
||
| 24 | use GetEndpointTrait; |
||
| 25 | use CreateEndpointTrait; |
||
| 26 | use DeleteEndpointTrait; |
||
| 27 | |||
| 28 | public function __construct(AccountEndpoint $parent) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param Certificate|string $id |
||
| 35 | */ |
||
| 36 | public function reload($id): Certificate |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param Certificate|string $id |
||
| 43 | */ |
||
| 44 | public function disable($id): Certificate |
||
| 45 | { |
||
| 46 | return $this->makeResource($this->postRequest('/{id}/disable', ['id' => $id])); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param Certificate|string $id |
||
| 51 | */ |
||
| 52 | public function enable($id): Certificate |
||
| 55 | } |
||
| 56 | } |
||
| 57 |