BaseAsset::getContent()   A
last analyzed

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
namespace NVBooster\PHPCRAssetsBundle\Asset;
3
4
use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface;
5
6
/**
7
 * @author nvb
8
 *
9
 */
10
class BaseAsset implements RouteReferrersReadInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $id;
16
    
17
    /**
18
     * @var object
19
     */
20
    protected $parentDocument;
21
    
22
    /**
23
     * @var string
24
     */
25
    protected $name;
26
    
27
    /**
28
     * @var string
29
     */
30
    protected $content;
31
    
32
    /**
33
     * @var \DateTime
34
     */
35
    protected $updatedAt;
36
    
37
    /**
38
     * @var array
39
     */
40
    protected $routes;
41
42
    /**
43
     * @return string
44
     */
45
    public function getId()
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * @param string $id
52
     * @return BaseAsset
53
     */
54
    public function setId($id)
55
    {
56
        $this->id = $id;
57
        
58
        return $this;
59
    }
60
61
    /**
62
     * @return object
63
     */
64
    public function getParentDocument()
65
    {
66
        return $this->parentDocument;
67
    }
68
69
    /**
70
     * @param object $parentDocument
71
     * 
72
     * @return BaseAsset
73
     */
74
    public function setParentDocument($parentDocument)
75
    {
76
        $this->parentDocument = $parentDocument;
77
        
78
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getName()
85
    {
86
        return $this->name;
87
    }
88
89
    /**
90
     * @param string $name
91
     * 
92
     * @return BaseAsset
93
     */
94
    public function setName($name)
95
    {
96
        $this->name = $name;
97
        
98
        return $this;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getContent()
105
    {
106
        return $this->content;
107
    }
108
109
    /**
110
     * @param string $content
111
     * 
112
     * @return BaseAsset
113
     */
114
    public function setContent($content)
115
    {
116
        $this->content = $content;
117
        
118
        return $this;
119
    }
120
121
    /**
122
     * @return \DateTime
123
     */
124
    public function getUpdatedAt()
125
    {
126
        return $this->updatedAt;
127
    }
128
129
    /**
130
     * @param \DateTime $updatedAt
131
     * 
132
     * @return BaseAsset
133
     */
134
    public function setUpdatedAt(\DateTime $updatedAt)
135
    {
136
        $this->updatedAt = $updatedAt;
137
        
138
        return $this;
139
    }
140
    
141
    /**
142
     * @return string
143
     */
144
    public function getExtension()
145
    {
146
        return '';
147
    }
148
    
149
    /**
150
     * @return array
151
     */
152
    public function getRoutes()
153
    {
154
        return $this->routes;
155
    }
156
}