public function validateNumber($creditCardNumber)
    {
        if (!$this->checkType()) {
            throw new Exception(Yii::t('ECCValidator', 'The "format" property must be specified with a supported Credit Card format.'));
        }

        $creditCardNumber = preg_replace('/[ -]+/', '', $creditCardNumber);

        return $this->checkFormat($creditCardNumber) && $this->mod10($creditCardNumber);
    }