Form   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getConfiguration() 0 4 1
A setConfiguration() 0 4 1
1
<?php
2
3
namespace Starkerxp\LeadBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Starkerxp\StructureBundle\Entity\AbstractUser;
7
8
/**
9
 * Lead
10
 *
11
 * @ORM\Table(name="form", indexes={
12
 *  @ORM\Index(columns={"name"}),
13
 *  @ORM\Index(columns={"uuid"}),
14
 *  @ORM\Index(columns={"created_at"}),
15
 *  @ORM\Index(columns={"updated_at"})
16
 * })
17
 * @ORM\Entity(repositoryClass="Starkerxp\LeadBundle\Repository\FormRepository")
18
 */
19
class Form extends AbstractUser
20
{
21
    /**
22
     * @var string
23
     *
24
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
25
     */
26
    protected $name;
27
28
    /**
29
     * @var array
30
     *
31
     * @ORM\Column(name="configuration", type="json_array", nullable=false)
32
     */
33
    protected $configuration;
34
35
    /**
36
     * @return string
37
     */
38
    public function getName()
39
    {
40
        return $this->name;
41
    }
42
43
    /**
44
     * @param string $name
45
     */
46
    public function setName($name)
47
    {
48
        $this->name = $name;
49
    }
50
51
    /**
52
     * @return array
53
     */
54
    public function getConfiguration()
55
    {
56
        return $this->configuration;
57
    }
58
59
    /**
60
     * @param array $configuration
61
     */
62
    public function setConfiguration($configuration)
63
    {
64
        $this->configuration = $configuration;
65
    }
66
67
68
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
69