AbstractRequirement::__construct()   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 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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