Content   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 3 1
A getPath() 0 3 1
A __construct() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace App\Domain;
4
5
final class Content
6
{
7
    /** @var string */
8
    private $data;
9
10
    /** @var \App\Domain\Path */
11
    private $path;
12
13
    /**
14
     * @param mixed $data
15
     * @param \App\Domain\Path $path
16
     */
17
    public function __construct($data, Path $path)
18
    {
19
        $this->data = $data;
20
        $this->path = $path;
21
    }
22
23
    /**
24
     * @return \App\Domain\Path
25
     */
26
    public function getPath(): Path
27
    {
28
        return $this->path;
29
    }
30
31
    /**
32
     * @return mixed
33
     */
34
    public function getData()
35
    {
36
        return $this->data;
37
    }
38
}
39