Completed
Pull Request — master (#18)
by Kamil
19:49
created

CustomBlock::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Lakion\SyliusCmsBundle\Document;
4
5
use Sylius\Component\Resource\Model\ResourceInterface;
6
use Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ImagineBlock;
7
8
class CustomBlock extends ImagineBlock implements ResourceInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $title;
14
15
    /**
16
     * @var string
17
     */
18
    protected $body;
19
20
    /**
21
     * @return string
22
     */
23
    public function getTitle()
24
    {
25
        return $this->title;
26
    }
27
28
    /**
29
     * @param string $title
30
     */
31
    public function setTitle($title)
32
    {
33
        $this->title = $title;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getBody()
40
    {
41
        return $this->body;
42
    }
43
44
    /**
45
     * @param string $body
46
     */
47
    public function setBody($body)
48
    {
49
        $this->body = $body;
50
    }
51
}
52