CustomConfiguration::getReservedServerProperties()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Bencagri\Artisan\Deployer\Configuration;
5
6
use Bencagri\Artisan\Deployer\Server\Server;
7
8
9
class CustomConfiguration extends AbstractConfiguration
10
{
11
    // this proxy method is needed because the autocompletion breaks
12
    // if the parent method is used directly
13
    public function server(string $sshDsn, array $roles = [Server::ROLE_APP], array $properties = []) : self
14
    {
15
        parent::server($sshDsn, $roles, $properties);
16
17
        return $this;
18
    }
19
20
    // this proxy method is needed because the autocompletion breaks
21
    // if the parent method is used directly
22
    public function useSshAgentForwarding(bool $useIt) : self
23
    {
24
        parent::useSshAgentForwarding($useIt);
25
26
        return $this;
27
    }
28
29
    protected function getReservedServerProperties() : array
30
    {
31
        return [];
32
    }
33
}
34