CustomBlock::getType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Lakion\CmsPlugin\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
     * {@inheritdoc}
22
     */
23
    public function getType()
24
    {
25
        return 'lakion_cms.block.custom';
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getTitle()
32
    {
33
        return $this->title;
34
    }
35
36
    /**
37
     * @param string $title
38
     */
39
    public function setTitle($title)
40
    {
41
        $this->title = $title;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getBody()
48
    {
49
        return $this->body;
50
    }
51
52
    /**
53
     * @param string $body
54
     */
55
    public function setBody($body)
56
    {
57
        $this->body = $body;
58
    }
59
}
60