for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the geo-api-library package.
*
* (c) 2020 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\GeoAPI\Request\Region;
use WBW\Library\GeoAPI\Request\AbstractRequest;
/**
* Départements request.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\GeoAPI\Request\Region
class DepartementsRequest extends AbstractRequest {
* Resource path.
* @avr string
const RESOURCE_PATH = "/regions/%s/departements";
* {@inheritDoc}
public function getResourcePath(): string {
if (null !== $this->getCode()) {
return sprintf(self::RESOURCE_PATH, $this->getCode());
}
return self::RESOURCE_PATH;