|
123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
-
- namespace common\logic\Config\TaxRate\Model;
-
- use common\components\ActiveRecordCommon;
-
- class TaxRate extends ActiveRecordCommon
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'tax_rate';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['value'], 'number'],
- [['name'], 'string', 'max' => 255],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Nom',
- 'value' => 'Valeur (0.2 pour 20%)',
- ];
- }
- }
|