Completed
Push — master ( 2afe63...db6e9c )
by Christian
02:24
created

Adapter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
isAvailable() 0 1 ?
isInstalled() 0 1 ?
install() 0 1 ?
uninstall() 0 1 ?
A __construct() 0 4 1
1
<?php
2
3
namespace uuf6429\ElderBrother\Vcs\Adapter;
4
5
use Psr\Log\LoggerInterface;
6
7
abstract class Adapter
8
{
9
    /**
10
     * @var LoggerInterface
11
     */
12
    protected $logger;
13
14
    /**
15
     * @return bool
16
     */
17
    abstract public function isAvailable();
18
19
    /**
20
     * @return bool
21
     */
22
    abstract public function isInstalled();
23
24
    /**
25
     * @return bool
26
     */
27
    abstract public function install();
28
29
    /**
30
     * @return bool
31
     */
32
    abstract public function uninstall();
33
34
    /**
35
     * @param LoggerInterface $logger
36
     */
37
    public function __construct(LoggerInterface $logger)
38
    {
39
        $this->logger = $logger;
40
    }
41
}
42