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

Inheritance: extends Eduardokum\LaravelBoleto\Cnab\Retorno\AbstractRetorno
Show file 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 )
convertDate ( $date )
count ( )
current ( )
getBancoNome ( ) : mixed
getCodigoBanco ( ) : string Retorna o código do banco
getDetalhe ( $i ) : Detalhe
getDetalhes ( ) : Illuminate\Database\Eloquent\Collection
getHeader ( ) : Header
getHeaderLote ( ) : HeaderLote
getTrailerArquivo ( ) : TrailerArquivo
getTrailerLote ( ) : TrailerLote
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.
getSegmentType ( $line )
getServiceType ( $line )
incrementDetalhe ( ) Incrementa o detalhe.
processarDetalhe ( array $detalhe ) : boolean
processarHeader ( array $header ) : boolean
processarHeaderLote ( array $headerLote ) : boolean
processarTrailer ( array $trailer ) : boolean
processarTrailerArquivo ( array $trailer ) : boolean
processarTrailerLote ( array $trailer ) : boolean
rem ( $i, $f, &$array ) : string Remove trecho do array.

Method Details

__construct() public method

public __construct ( String $file )
$file String

convertDate() public method

public convertDate ( $date )

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

getHeaderLote() public method

public getHeaderLote ( ) : HeaderLote
return HeaderLote

getSegmentType() protected method

protected getSegmentType ( $line )

getServiceType() protected method

protected getServiceType ( $line )

getTrailerArquivo() public method

public getTrailerArquivo ( ) : TrailerArquivo
return TrailerArquivo

getTrailerLote() public method

public getTrailerLote ( ) : TrailerLote
return TrailerLote

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

processarHeaderLote() abstract protected method

abstract protected processarHeaderLote ( array $headerLote ) : boolean
$headerLote array
return boolean

processarTrailer() abstract protected method

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

processarTrailerArquivo() abstract protected method

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

processarTrailerLote() abstract protected method

abstract protected processarTrailerLote ( 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 property

Código do banco
protected string $codigoBanco
return string

$file protected property

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

$totais protected property

Helper de totais.
protected array $totais
return array