RebuildCommand   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 withDistribution() 0 3 1
A resourcePath() 0 3 1
A withRootPassword() 0 3 1
1
<?php
2
3
namespace Linode\Api\Servers\Commands;
4
5
use Linode\Api\Api\LinodeResourceCommand;
6
7
class RebuildCommand extends LinodeResourceCommand
8
{
9
    public function resourcePath()
10
    {
11
        return 'rebuild';
12
    }
13
14
    public function withDistribution(string $distribution)
15
    {
16
        return $this->attachPayload('distribution', $distribution);
17
    }
18
19
    public function withRootPassword(string $password)
20
    {
21
        return $this->attachPayload('root_pass', $password);
22
    }
23
}
24