Content::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
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