Completed
Push — master ( 8babd6...f4be45 )
by David
15s queued 11s
created

Volume   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getSource() 0 3 1
1
<?php
2
3
namespace TheAentMachine\Service\Volume;
4
5
abstract class Volume implements \JsonSerializable
6
{
7
    /** @var string */
8
    protected $source;
9
10
    /**
11
     * Volume constructor.
12
     * @param string $source
13
     */
14
    public function __construct(string $source)
15
    {
16
        $this->source = $source;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getSource(): string
23
    {
24
        return $this->source;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    abstract public function getType(): string;
31
}
32