Completed
Pull Request — master (#18)
by Kamil
02:30
created

CustomBlock   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 44
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
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\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