Completed
Pull Request — master (#16)
by Dayle
07:52 queued 05:44
created

Document::getRaw()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Kurenai;
4
5
/**
6
 * Class Document
7
 *
8
 * @package \Kurenai
9
 */
10
class Document
11
{
12
    /**
13
     * Raw document content.
14
     *
15
     * @var string
16
     */
17
    protected $raw;
18
19
    /**
20
     * Document metadata.
21
     *
22
     * @var mixed
23
     */
24
    protected $metadata;
25
26
    /**
27
     * Document content.
28
     *
29
     * @var string
30
     */
31
    protected $content;
32
33
    /**
34
     * Document constructor.
35
     *
36
     * @param string $raw
37
     * @param mixed  $metdata
38
     * @param string $content
39
     */
40
    public function __construct($raw, $metdata, $content)
41
    {
42
        $this->raw      = $raw;
43
        $this->metadata = $metdata;
44
        $this->content  = $content;
45
    }
46
47
    /**
48
     * Get the raw document.
49
     *
50
     * @return string
51
     */
52
    public function getRaw()
53
    {
54
        return $this->raw;
55
    }
56
57
    /**
58
     * Get the document metadata.
59
     *
60
     * @return mixed
61
     */
62
    public function getMetadata()
63
    {
64
        return $this->metadata;
65
    }
66
67
    /**
68
     * Get the document content.
69
     *
70
     * @return string
71
     */
72
    public function getContent()
73
    {
74
        return $this->content;
75
    }
76
}
77