Completed
Pull Request — master (#7)
by
unknown
08:11 queued 01:26
created

Volume::getSource()   A

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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
    abstract public static function getType(): string;
23
}
24