Completed
Push — master ( 0eab77...b2f729 )
by Paul
05:35
created

ORMBusinessEntity   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getClass() 0 4 1
A setClass() 0 4 1
A getType() 0 4 1
1
<?php
2
3
namespace Victoire\Bundle\ORMBusinessEntityBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntity;
7
8
/**
9
 * The ORM business Entity.
10
 *
11
 * @ORM\Entity(repositoryClass="Victoire\Bundle\ORMBusinessEntityBundle\Entity\ORMBusinessEntityRepository")
12
 */
13
class ORMBusinessEntity extends BusinessEntity
14
{
15
    const TYPE = 'orm';
16
17
    /**
18
     * @var string
19
     *
20
     * @ORM\Column(name="class", type="string", length=255, nullable=true)
21
     */
22
    protected $class = null;
23
24
    /**
25
     * Get the class.
26
     *
27
     * @return string The class
28
     */
29
    public function getClass()
30
    {
31
        return $this->class;
32
    }
33
34
    /**
35
     * Set the class.
36
     *
37
     * @param string $class
38
     */
39
    public function setClass($class)
40
    {
41
        $this->class = $class;
42
    }
43
44
    public function getType()
45
    {
46
        return self::TYPE;
47
    }
48
}
49