BootCommand   A
last analyzed

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 fromConfig() 0 3 1
A resourcePath() 0 3 1
1
<?php
2
3
namespace Linode\Api\Servers\Commands;
4
5
use Linode\Api\Api\LinodeResourceCommand;
6
7
class BootCommand extends LinodeResourceCommand
8
{
9
    public function resourcePath()
10
    {
11
        return 'boot';
12
    }
13
14
    public function fromConfig(int $configId)
15
    {
16
        return $this->attachPayload('config_id', $configId);
17
    }
18
}
19