| 1 | <?php |
||
| 10 | final class Production implements MapperInterface |
||
| 11 | { |
||
| 12 | public const BASE_URL = 'https://api.kvk.nl'; |
||
| 13 | private const SEARCH_Endpoint = '/api/v2/search/companies'; |
||
| 14 | private const PROFILE_Endpoint = '/api/v2/profile/companies'; |
||
| 15 | |||
| 16 | private $map = [ |
||
| 17 | MapperInterface::SEARCH => self::BASE_URL . self::SEARCH_Endpoint, |
||
| 18 | MapperInterface::PROFILE => self::BASE_URL . self::PROFILE_Endpoint, |
||
| 19 | ]; |
||
| 20 | |||
| 21 | 3 | public function map(string $key): string |
|
| 29 | } |
||
| 30 |