for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/yiiviet/yii2-payment
* @copyright Copyright (c) 2017 Yii Viet
* @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
*/
namespace yiiviet\payment;
use yii\validators\RangeValidator;
* Lớp BankValidator hổ trợ kiểm tra tính hợp lệ của mã ngân hàng gửi lên từ client side.
*
* @author Vuong Minh <[email protected]>
* @since 1.0.3
class BankValidator extends RangeValidator
{
use GatewayBankProviderTrait;
* @inheritdoc
public function init()
$this->range = array_keys($this->provider->banks());
parent::init();
}