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

ConfigsManager::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace Linode\Api\Configs;
4
5
use Linode\Api\Configs\Commands\GetConfigCommand;
6
use Linode\Api\Configs\Commands\ListConfigsCommand;
7
8
class ConfigsManager
9
{
10
    public function list()
11
    {
12
        return new ListConfigsCommand();
13
    }
14
15
    /**
16
     * @param int $configId
17
     *
18
     * @return GetConfigCommand
19
     */
20
    public function get(int $configId)
21
    {
22
        return (new GetConfigCommand())->setResourceId($configId);
23
    }
24
}
25