PHP Class Eduardokum\LaravelBoleto\Cnab\Retorno\AbstractRetorno

Inheritance: implements Countable, implements SeekableIterator
Afficher le fichier Open project: eduardokum/laravel-boleto Class Usage Examples

Protected Properties

Свойство Type Description
$codigoBanco string Código do banco
$detalhe Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe[] | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe[]
$file array Arquivo transformado em array por linha.
$header Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Header | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Header
$increment integer Incremeto de detalhes
$processado boolean Se Cnab ja foi processado
$totais array Helper de totais.
$trailer Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Trailer | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Trailer

Méthodes publiques

Méthode Description
__construct ( String $file )
count ( )
current ( )
getBancoNome ( ) : mixed
getCodigoBanco ( ) : string Retorna o código do banco
getDetalhe ( $i ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe[] | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe[]
getDetalhes ( ) : Collection
getHeader ( ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Header | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Header
getTrailer ( ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Trailer | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Trailer
key ( )
next ( )
rewind ( )
seek ( $position )
valid ( )

Méthodes protégées

Méthode Description
detalheAtual ( ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe Retorna o detalhe atual.
incrementDetalhe ( ) Incrementa o detalhe.
isProcessado ( ) : boolean Se esta processado
processar ( ) Processa o arquivo
rem ( $i, $f, &$array ) : string Remove trecho do array.
setProcessado ( ) Seta cnab como processado
toArray ( ) : array Retorna o array.

Method Details

__construct() public méthode

public __construct ( String $file )
$file String

count() public méthode

public count ( )

current() public méthode

public current ( )

detalheAtual() protected méthode

Retorna o detalhe atual.
protected detalheAtual ( ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe
Résultat Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe

getBancoNome() public méthode

public getBancoNome ( ) : mixed
Résultat mixed

getCodigoBanco() public méthode

Retorna o código do banco
public getCodigoBanco ( ) : string
Résultat string

getDetalhe() public méthode

public getDetalhe ( $i ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe[] | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe[]
$i
Résultat Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe[] | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe[]

getDetalhes() public méthode

public getDetalhes ( ) : Collection
Résultat Illuminate\Support\Collection

getHeader() public méthode

public getHeader ( ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Header | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Header
Résultat Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Header | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Header

getTrailer() public méthode

public getTrailer ( ) : Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Trailer | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Trailer
Résultat Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Trailer | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Trailer

incrementDetalhe() abstract protected méthode

Incrementa o detalhe.
abstract protected incrementDetalhe ( )

isProcessado() protected méthode

Se esta processado
protected isProcessado ( ) : boolean
Résultat boolean

key() public méthode

public key ( )

next() public méthode

public next ( )

processar() abstract protected méthode

Processa o arquivo
abstract protected processar ( )

rem() protected méthode

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

rewind() public méthode

public rewind ( )

seek() public méthode

public seek ( $position )

setProcessado() protected méthode

Seta cnab como processado
protected setProcessado ( )

toArray() abstract protected méthode

Retorna o array.
abstract protected toArray ( ) : array
Résultat array

valid() public méthode

public valid ( )

Property Details

$codigoBanco protected_oe property

Código do banco
protected string $codigoBanco
Résultat string

$detalhe protected_oe property

protected Detalhe[],Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240|Detalhe[],Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400 $detalhe
Résultat Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Detalhe[] | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Detalhe[]

$file protected_oe property

Arquivo transformado em array por linha.
protected array $file
Résultat array

$header protected_oe property

protected Header,Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240|Header,Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400 $header
Résultat Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Header | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Header

$increment protected_oe property

Incremeto de detalhes
protected int $increment
Résultat integer

$processado protected_oe property

Se Cnab ja foi processado
protected bool $processado
Résultat boolean

$totais protected_oe property

Helper de totais.
protected array $totais
Résultat array

$trailer protected_oe property

protected Trailer,Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240|Trailer,Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400 $trailer
Résultat Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab240\Trailer | Eduardokum\LaravelBoleto\Contracts\Cnab\Retorno\Cnab400\Trailer