ListDisksCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A itemsKey() 0 3 1
A resourceClass() 0 3 1
A resourcePath() 0 3 1
1
<?php
2
3
namespace Linode\Api\Disks\Commands;
4
5
use Linode\Api\Disks\Disk;
6
use Zurbaev\ApiClient\Commands\ListResourcesCommand;
7
8
class ListDisksCommand extends ListResourcesCommand
9
{
10
    public function itemsKey()
11
    {
12
        return 'disks';
13
    }
14
15
    public function resourcePath()
16
    {
17
        return 'disks';
18
    }
19
20
    public function resourceClass()
21
    {
22
        return Disk::class;
23
    }
24
}
25