| 1 | <?php |
||
| 28 | class Tva |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var int Id of the VAT rate |
||
| 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 VAT rate |
||
| 41 | * |
||
| 42 | * @ORM\Column(name="rate", type="decimal", precision=4, scale=3) |
||
| 43 | */ |
||
| 44 | private $rate; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get id. |
||
| 48 | * |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getId() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Set rate. |
||
| 58 | * |
||
| 59 | * @param decimal $rate VAT rate |
||
| 60 | * |
||
| 61 | * @return Settings\Diverse\Tva |
||
| 62 | */ |
||
| 63 | public function setRate($rate) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get rate. |
||
| 72 | * |
||
| 73 | * @return decimal |
||
| 74 | */ |
||
| 75 | public function getRate() |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Get name |
||
| 82 | * |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | public function getName() |
||
| 89 | } |
||
| 90 |