PHP Class Eduardokum\LaravelBoleto\Cnab\Retorno\Cnab400\AbstractRetorno

Inheritance: implements Countable, implements SeekableIterator
Exibir arquivo Open project: eduardokum/laravel-boleto

Protected Properties

Property Type Description
$codigoBanco string Código do banco
$file array Arquivo transformado em array por linha.
$totais array Helper de totais.

Public Methods

Method Description
__construct ( String $file )
count ( )
current ( )
getBancoNome ( ) : mixed
getCodigoBanco ( ) : string Retorna o código do banco
getDetalhe ( $i ) : Detalhe
getDetalhes ( ) : Illuminate\Database\Eloquent\Collection
getHeader ( ) : Header
getTrailer ( ) : Trailer
key ( )
next ( )
processar ( ) Processa o arquivo
rewind ( )
seek ( $position )
toArray ( ) : array Retorna o array.
valid ( )

Protected Methods

Method Description
detalheAtual ( ) : Detalhe Retorna o detalhe atual.
incrementDetalhe ( ) Incrementa o detalhe.
processarDetalhe ( array $detalhe ) : boolean
processarHeader ( array $header ) : boolean
processarTrailer ( array $trailer ) : boolean
rem ( $i, $f, &$array ) : string Remove trecho do array.

Method Details

__construct() public method

public __construct ( String $file )
$file String

count() public method

public count ( )

current() public method

public current ( )

detalheAtual() protected method

Retorna o detalhe atual.
protected detalheAtual ( ) : Detalhe
return Detalhe

getBancoNome() public method

public getBancoNome ( ) : mixed
return mixed

getCodigoBanco() public method

Retorna o código do banco
public getCodigoBanco ( ) : string
return string

getDetalhe() public method

public getDetalhe ( $i ) : Detalhe
$i
return Detalhe

getDetalhes() public method

public getDetalhes ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection

getHeader() public method

public getHeader ( ) : Header
return Header

getTrailer() public method

public getTrailer ( ) : Trailer
return Trailer

incrementDetalhe() protected method

Incrementa o detalhe.
protected incrementDetalhe ( )

key() public method

public key ( )

next() public method

public next ( )

processar() public method

Processa o arquivo
public processar ( )

processarDetalhe() abstract protected method

abstract protected processarDetalhe ( array $detalhe ) : boolean
$detalhe array
return boolean

processarHeader() abstract protected method

abstract protected processarHeader ( array $header ) : boolean
$header array
return boolean

processarTrailer() abstract protected method

abstract protected processarTrailer ( array $trailer ) : boolean
$trailer array
return boolean

rem() protected method

Remove trecho do array.
protected rem ( $i, $f, &$array ) : string
$i
$f
$array
return string

rewind() public method

public rewind ( )

seek() public method

public seek ( $position )

toArray() public method

Retorna o array.
public toArray ( ) : array
return array

valid() public method

public valid ( )

Property Details

$codigoBanco protected_oe property

Código do banco
protected string $codigoBanco
return string

$file protected_oe property

Arquivo transformado em array por linha.
protected array $file
return array

$totais protected_oe property

Helper de totais.
protected array $totais
return array