AbstractRequirement   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getServers() 0 3 1
1
<?php
2
3
namespace Bencagri\Artisan\Deployer\Requirement;
4
5
use Bencagri\Artisan\Deployer\Server\Server;
6
use Bencagri\Artisan\Deployer\Task\Task;
7
8
abstract class AbstractRequirement
9
{
10
    /** @var Server[] */
11
    private $servers;
12
13
    public function __construct(array $servers)
14
    {
15
        $this->servers = $servers;
16
    }
17
18
    public function getServers() : array
19
    {
20
        return $this->servers;
21
    }
22
23
    abstract public function getChecker() : Task;
24
25
    abstract public function getMessage() : string;
26
}
27