src/Cnab/Retorno/Cnab400/AbstractRetorno.php
public function toArray()
    {
        $array = [
            'header' => $this->header->toArray(),
            'trailer' => $this->trailer->toArray(),
            'detalhes' => new Collection()
        ];
        foreach ($this->detalhe as $detalhe) {
            $array['detalhes']->push($detalhe->toArray());
        }
        return $array;
    }
public function toArray()
    {
        $array = [
            'header' => $this->header->toArray(),
            'trailer' => $this->trailer->toArray(),
            'detalhes' => new Collection()
        ];
        foreach ($this->detalhe as $detalhe) {
            $array['detalhes']->push($detalhe->toArray());
        }
        return $array;
    }
public function toArray ( ) { $ array = [ 'header' => $ this -> header -> toArray ( ) , 'trailer' => $ this -> trailer -> toArray ( ) , 'detalhes' => new Collection ( ) ] ; foreach ( $ this -> detalhe as $ detalhe ) { $ array [ 'detalhes' ] -> push ( $ detalhe -> toArray ( ) ) ; } return $ array ; }
Retorna o array.

@return array
Retorna o array .