CustomBlock   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 52
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A getTitle() 0 4 1
A setTitle() 0 4 1
A getBody() 0 4 1
A setBody() 0 4 1
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