CustomConfiguration   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getReservedServerProperties() 0 3 1
A useSshAgentForwarding() 0 5 1
A server() 0 5 1
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