src/Jackiedo/LogReader/Entities/LogEntry.php
protected function assignAttributes()
    {
        $bodyParsed                       = $this->parser->parseLogBody($this->attributes['body']);
        $this->attributes['context']      = $bodyParsed['context'];
        $this->attributes['stack_traces'] = $bodyParsed['stack_traces'];

        $this->setId($this->generateId());
        $this->setDate($this->attributes['date']);
        $this->setEnvironment($this->attributes['environment']);
        $this->setLevel($this->attributes['level']);
        $this->setFilePath($this->attributes['file_path']);
        $this->setContext($this->attributes['context']);
        $this->setStackTraces($this->attributes['stack_traces']);
    }
protected function assignAttributes()
    {
        $bodyParsed                       = $this->parser->parseLogBody($this->attributes['body']);
        $this->attributes['context']      = $bodyParsed['context'];
        $this->attributes['stack_traces'] = $bodyParsed['stack_traces'];

        $this->setId($this->generateId());
        $this->setDate($this->attributes['date']);
        $this->setEnvironment($this->attributes['environment']);
        $this->setLevel($this->attributes['level']);
        $this->setFilePath($this->attributes['file_path']);
        $this->setContext($this->attributes['context']);
        $this->setStackTraces($this->attributes['stack_traces']);
    }
protected function assignAttributes ( ) { $ bodyParsed = $ this -> parser -> parseLogBody ( $ this -> attributes [ 'body' ] ) ; $ this -> attributes [ 'context' ] = $ bodyParsed [ 'context' ] ; $ this -> attributes [ 'stack_traces' ] = $ bodyParsed [ 'stack_traces' ] ; $ this -> setId ( $ this -> generateId ( ) ) ; $ this -> setDate ( $ this -> attributes [ 'date' ] ) ; $ this -> setEnvironment ( $ this -> attributes [ 'environment' ] ) ; $ this -> setLevel ( $ this -> attributes [ 'level' ] ) ; $ this -> setFilePath ( $ this -> attributes [ 'file_path' ] ) ; $ this -> setContext ( $ this -> attributes [ 'context' ] ) ; $ this -> setStackTraces ( $ this -> attributes [ 'stack_traces' ] ) ; }
Assigns the valid keys in the attributes array
to the properties in the log entry.

@return void
Assigns the valid keys in the attributes array to the properties in the log entry .