Passed
Push — bugfix/support-windows ( 517fb4...0e99e7 )
by Chema
04:47
created

ReadPhpConfigEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\Event\ConfigReader;
6
7
use Gacela\Framework\Event\GacelaEventInterface;
8
9
use function get_class;
10
11
final class ReadPhpConfigEvent implements GacelaEventInterface
12
{
13 15
    public function __construct(
14
        private string $absolutePath,
15
    ) {
16 15
    }
17
18
    public function absolutePath(): string
19
    {
20
        return $this->absolutePath;
21
    }
22
23
    public function toString(): string
24
    {
25
        return sprintf(
26
            '%s {absolutePath:"%s"}',
27
            get_class($this),
28
            $this->absolutePath,
29
        );
30
    }
31
}
32