Reporter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 2
1
<?php declare(strict_types=1);
2
/**
3
 * Created by Vitaly Iegorov <[email protected]>.
4
 * on 22.09.16 at 17:45
5
 */
6
namespace samsonframework\bitbucket;
7
8
/**
9
 * Class Reporter
10
 *
11
 * @author Vitaly Egorov <[email protected]>
12
 */
13
abstract class Reporter
14
{
15
    /** @var string Reporter source path */
16
    protected $path;
17
18
    /**
19
     * Reporter constructor.
20
     *
21
     * @param string $path Reporter source path
22
     */
23
    public function __construct(string $path)
24
    {
25
        // Validate file
26
        if (!is_file($path)) {
27
            throw new \InvalidArgumentException($path.' - does not exists or not a file');
28
        }
29
30
        $this->path = $path;
31
    }
32
}
33