| Total Complexity | 3 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class AddressControl extends LaPoste |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | const SERVICE_URI = '/controladresse/v1/adresses'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Construct Method |
||
| 18 | * |
||
| 19 | * @param string $apiKey La Poste Developer API Key |
||
| 20 | */ |
||
| 21 | public function __construct(string $apiKey) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Find an address matching with the selector |
||
| 28 | * |
||
| 29 | * @param string $address An address located in France. |
||
| 30 | * |
||
| 31 | * @return array |
||
| 32 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 33 | */ |
||
| 34 | public function find(string $address) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get details on a specific address |
||
| 53 | * |
||
| 54 | * @param string $code A code of an address |
||
| 55 | * |
||
| 56 | * @return Address |
||
| 57 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 58 | */ |
||
| 59 | public function detail(string $code) |
||
| 81 |