Test Failed
Branch feature__set_up_scrutinizer (ea6624)
by Robin
06:04 queued 02:46
created

Image   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace App\Support\Images;
4
5
class Image
6
{
7
    /** @var string */
8
    protected $name;
9
10
    /** @var string|null */
11
    protected $localPath;
12
13 2
    public function __construct($name, $localPath = null)
14
    {
15 2
        $this->name = $name;
16 2
        $this->localPath = $localPath;
17 2
    }
18
19 2
    public function __get($name)
20
    {
21 2
        return $this->{$name} ?? null;
22
    }
23
}
24