Content::setReference()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 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