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

RegionsManager   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 get() 0 3 1
A list() 0 3 1
1
<?php
2
3
namespace Linode\Api\Regions;
4
5
use Linode\Api\Regions\Commands\GetRegionCommand;
6
use Linode\Api\Regions\Commands\ListRegionsCommand;
7
8
class RegionsManager
9
{
10
    public function list()
11
    {
12
        return new ListRegionsCommand();
13
    }
14
15
    /**
16
     * @param string $id
17
     *
18
     * @return GetRegionCommand
19
     */
20
    public function get(string $id)
21
    {
22
        return (new GetRegionCommand())->setResourceId($id);
23
    }
24
}
25