Completed
Push — master ( 791aba...50879e )
by Timur
01:32
created

ResizeDiskCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A resourcePath() 0 3 1
A withSize() 0 3 1
1
<?php
2
3
namespace Linode\Api\Disks\Commands;
4
5
use Linode\Api\Api\LinodeResourceCommand;
6
7
class ResizeDiskCommand extends LinodeResourceCommand
8
{
9
    public function resourcePath()
10
    {
11
        return 'resize';
12
    }
13
14
    public function withSize(int $megabytes)
15
    {
16
        return $this->attachPayload('size', $megabytes);
17
    }
18
}
19