CommunesRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResourcePath() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the geo-api-library package.
5
 *
6
 * (c) 2020 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\GeoAPI\Request\Region;
13
14
use WBW\Library\GeoAPI\Model\Attribute\StringFormatTrait;
15
use WBW\Library\GeoAPI\Model\Attribute\StringGeometryTrait;
16
use WBW\Library\GeoAPI\Request\AbstractRequest;
17
18
/**
19
 * Communes request.
20
 *
21
 * @author webeweb <https://github.com/webeweb/>
22
 * @package WBW\Library\GeoAPI\Request\Region
23
 */
24
class CommunesRequest extends AbstractRequest {
25
26
    use StringFormatTrait;
27
    use StringGeometryTrait;
28
29
    /**
30
     * Resource path.
31
     *
32
     * @avr string
33
     */
34
    const RESOURCE_PATH = "/regions/%s/communes";
35
36
    /**
37
     * {@inheritDoc}
38
     */
39
    public function getResourcePath(): string {
40
        return $this->sprintfResourcesPath(self::RESOURCE_PATH);
41
    }
42
}