Completed
Push — master ( 74bae6...8bdcbb )
by Zbigniew
03:01
created

VersionResource::getResourceMethodConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-library package.
5
 *
6
 * (c) Zbigniew Ślązak
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 Zibios\WrikePhpLibrary\Resource;
13
14
use Zibios\WrikePhpLibrary\Enum\Api\RequestPathFormatEnum;
15
use Zibios\WrikePhpLibrary\Enum\Api\ResourceMethodEnum;
16
use Zibios\WrikePhpLibrary\Resource\Traits\GetAllTrait;
17
18
/**
19
 * Version Resource.
20
 */
21
class VersionResource extends AbstractResource
22
{
23
    use GetAllTrait;
24
25
    /**
26
     * @return array
27
     */
28 2
    protected function getResourceMethodConfiguration()
29
    {
30
        return [
31 2
            ResourceMethodEnum::GET_ALL => RequestPathFormatEnum::VERSIONS,
32
        ];
33
    }
34
}
35