|
- <?php
-
-
-
- namespace producer\models;
-
- use domain\Producer\Producer\ProducerModule;
- use yii\base\Model;
-
- class CreditForm extends Model
- {
-
- public $amount ;
-
-
-
- public function rules()
- {
- $producerModule = ProducerModule::getInstance();
-
- return [
- [['amount'], 'required'],
- [['amount'], 'double', 'min' => $producerModule->getOnlinePaymentMinimumAmount()],
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'amount' => 'Montant',
- ];
- }
-
- }
|