|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
-
- namespace domain\Config\TaxRate;
-
- use common\components\ActiveRecordCommon;
-
- class TaxRate extends ActiveRecordCommon
- {
- public static function tableName()
- {
- return 'tax_rate';
- }
-
- public function rules()
- {
- return [
- [['value'], 'number'],
- [['name'], 'string', 'max' => 255],
- ];
- }
-
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Nom',
- 'value' => 'Valeur (0.2 pour 20%)',
- ];
- }
-
- /* Getters / Setters */
-
- public function getId(): ?int
- {
- return $this->id;
- }
-
- public function getName(): ?string
- {
- return $this->name;
- }
-
- public function setName(?string $name): self
- {
- $this->name = $name;
- return $this;
- }
-
- public function getValue(): ?float
- {
- return $this->value;
- }
-
- public function setValue(?float $value): self
- {
- $this->value = $value;
- return $this;
- }
- }
|