Content   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 4
Bugs 1 Features 2
Metric Value
wmc 2
c 4
b 1
f 2
lcom 0
cbo 2
dl 0
loc 35
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getReference() 0 4 1
A setReference() 0 5 1
1
<?php
2
namespace Axstrad\Bundle\ContentBundle\Entity;
3
4
use Axstrad\Bundle\ContentBundle\Model\Content as ContentInterface;
5
use Axstrad\Common\Entity\IdTrait;
6
use Axstrad\Component\Content\Entity\Article;
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * Axstrad\Bundle\ContentBundle\Entity\Content
11
 *
12
 * @ORM\Entity(repositoryClass="Axstrad\Bundle\ContentBundle\Entity\Repository\ContentRepository")
13
 * @ORM\Table(name="axstrad_content")
14
 */
15
class Content extends Article implements
16
    ContentInterface
17
{
18
    use IdTrait;
19
20
    /**
21
     * @ORM\Column(name="reference", type="string", length=255, unique=true)
22
     * @var string
23
     */
24
    protected $reference;
25
26
    /**
27
     * Get reference
28
     *
29
     * @return string
30
     * @see setReference
31
     */
32
    public function getReference()
33
    {
34
        return $this->reference;
35
    }
36
37
    /**
38
     * Set reference
39
     *
40
     * @param  string $reference
41
     * @return self
42
     * @see getReference
43
     */
44
    public function setReference($reference)
45
    {
46
        $this->reference = (string) $reference;
47
        return $this;
48
    }
49
}
50