public function rules() { return [['amount', 'required'], ['amount', 'integer'], ['amount', 'compare', 'compareValue' => 0, 'operator' => '!=']]; }