Completed
Push — sf2.7 ( 18de34...b252b6 )
by Laurent
18:26
created

Tva   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setName() 0 6 1
A getName() 0 4 1
1
<?php
2
3
/**
4
 * Entité Tva.
5
 *
6
 * PHP Version 5
7
 *
8
 * @author     Quétier Laurent <[email protected]>
9
 * @copyright  2014 Dev-Int GLSR
10
 * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
11
 *
12
 * @version    0.1.0
13
 *
14
 * @link       https://github.com/Dev-Int/glsr
15
 */
16
namespace AppBundle\Entity;
17
18
use Doctrine\ORM\Mapping as ORM;
19
20
/**
21
 * Tva Entité Tva.
22
 *
23
 * @category   Entity
24
 *
25
 * @ORM\Table(name="gs_tva")
26
 * @ORM\Entity(repositoryClass="AppBundle\Entity\TvaRepository")
27
 */
28
class Tva
29
{
30
    /**
31
     * @var int Id du taux de TVA
32
     *
33
     * @ORM\Column(name="id", type="integer")
34
     * @ORM\Id
35
     * @ORM\GeneratedValue(strategy="AUTO")
36
     */
37
    private $id;
38
39
    /**
40
     * @var decimal Taux de TVA
41
     *
42
     * @ORM\Column(name="name", type="decimal", precision=5, scale=3)
43
     */
44
    private $name;
45
46
    /**
47
     * Get id.
48
     *
49
     * @return int
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * Set name.
58
     *
59
     * @param decimal $name Taux de TVA
60
     *
61
     * @return tva
62
     */
63
    public function setName($name)
64
    {
65
        $this->name = $name;
66
67
        return $this;
68
    }
69
70
    /**
71
     * Get name.
72
     *
73
     * @return string
74
     */
75
    public function getName()
76
    {
77
        return $this->name;
78
    }
79
}
80