Passed
Push — master ( 3764eb...eb004c )
by Adrian Florin
04:02
created

Content::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * This file is part of the NeedleProject\FileIo package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
namespace NeedleProject\FileIo\Content;
9
10
/**
11
 * Class Content
12
 *
13
 * @package NeedleProject\FileIo\Content
14
 * @author Adrian Tilita <[email protected]>
15
 * @copyright 2017 Adrian Tilita
16
 * @license https://opensource.org/licenses/MIT MIT Licence
17
 */
18
class Content implements ContentInterface
19
{
20
    /**
21
     * @var null|string
22
     */
23
    private $content = null;
24
25
    /**
26
     * Content constructor.
27
     *
28
     * @param string $content
29
     */
30
    public function __construct(string $content)
31
    {
32
        $this->content = $content;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function get(): string
39
    {
40
        return $this->content;
41
    }
42
}
43