Exemplo n.º 1
0
 protected function validate()
 {
     $transformationIndex = $this->getTransformationIndex();
     if (!array_key_exists($transformationIndex, self::$transformation)) {
         return;
     }
     $transformationPrefix = self::$transformation[$transformationIndex];
     $this->validator->setNormalizedSize(10 + strlen($transformationPrefix));
     $this->transformedAccount = $transformationPrefix . substr($this->account, 1);
 }
Exemplo n.º 2
0
 protected function validate()
 {
     $transformation = array_key_exists($this->account[0], self::$transformation) ? self::$transformation[$this->account[0]] : '';
     $this->transformedAccount = $transformation . substr($this->account, 1);
     $this->validator->setNormalizedSize(9 + strlen($transformation));
 }
Exemplo n.º 3
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->validator = new Validator00($bank);
     $this->validator->setNormalizedSize(10 + strlen(self::TRANSFORMATION));
 }