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); }
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)); }
public function __construct(Bank $bank) { parent::__construct($bank); $this->validator = new Validator00($bank); $this->validator->setNormalizedSize(10 + strlen(self::TRANSFORMATION)); }