DistributionsManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 1
A list() 0 3 1
1
<?php
2
3
namespace Linode\Api\Distributions;
4
5
use Linode\Api\Distributions\Commands\GetDistributionCommand;
6
use Linode\Api\Distributions\Commands\ListDistributionsCommand;
7
8
class DistributionsManager
9
{
10
    /**
11
     * @return ListDistributionsCommand
12
     */
13
    public function list()
14
    {
15
        return new ListDistributionsCommand();
16
    }
17
18
    /**
19
     * @param string $id
20
     *
21
     * @return GetDistributionCommand
22
     */
23
    public function get(string $id)
24
    {
25
        return (new GetDistributionCommand())->setResourceId($id);
26
    }
27
}
28