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

ResetDiskRootPassword   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withPassword() 0 3 1
A resourcePath() 0 3 1
1
<?php
2
3
namespace Linode\Api\Disks\Commands;
4
5
use Linode\Api\Api\LinodeResourceCommand;
6
7
class ResetDiskRootPassword extends LinodeResourceCommand
8
{
9
    public function resourcePath()
10
    {
11
        return 'password';
12
    }
13
14
    /**
15
     * @param string $password
16
     *
17
     * @return $this
18
     */
19
    public function withPassword(string $password)
20
    {
21
        return $this->attachPayload('password', $password);
22
    }
23
}
24