public function extract()
    {
        $bank = BankInterchange\Models\Bank::getInstance([
            'code' => $this->bank_code,
        ]);

        if ($bank === null) {
            $message = "Extractor class for CNAB$this->config not found";
            throw new \LogicException($message);
        }

        $extractor_class = __NAMESPACE__ . "\\Extractors\\Cnab$this->cnab\\"
            . BankInterchange\Utils::toPascalCase($bank->name);

        return new $extractor_class($this);
    }
public function extract()
    {
        $bank = BankInterchange\Models\Bank::getInstance([
            'code' => $this->bank_code,
        ]);

        if ($bank === null) {
            $message = "Extractor class for CNAB$this->config not found";
            throw new \LogicException($message);
        }

        $extractor_class = __NAMESPACE__ . "\\Extractors\\Cnab$this->cnab\\"
            . BankInterchange\Utils::toPascalCase($bank->name);

        return new $extractor_class($this);
    }
public function extract ( ) { $ bank = BankInterchange \ Models \ Bank :: getInstance ( [ 'code' => $ this -> bank_code , ] ) ; if ( $ bank === null ) { $ message = "Extractor class for CNAB$this->config not found" ; throw new \ LogicException ( $ message ) ; } $ extractor_class = __NAMESPACE__ . "\\Extractors\\Cnab$this->cnab\\" . BankInterchange \ Utils :: toPascalCase ( $ bank -> name ) ; return new $ extractor_class ( $ this ) ; }
Extracts useful data from the parsed registries in a fixed layout

@return Extractor

@throws \LogicException If could not find Bank in the Database
Extracts useful data from the parsed registries in a fixed layout