src/Jackiedo/LogReader/LogReader.php
protected function setOrderByField($field)
    {
        $field = strtolower($field);

        $acceptedFields = [
            'id',
            'date',
            'level',
            'environment',
            'file_path'
        ];

        if (in_array($field, $acceptedFields)) {
            $this->orderByField = $field;
        }
    }
protected function setOrderByField($field)
    {
        $field = strtolower($field);

        $acceptedFields = [
            'id',
            'date',
            'level',
            'environment',
            'file_path'
        ];

        if (in_array($field, $acceptedFields)) {
            $this->orderByField = $field;
        }
    }
protected function setOrderByField ( $ field ) { $ field = strtolower ( $ field ) ; $ acceptedFields = [ 'id' , 'date' , 'level' , 'environment' , 'file_path' ] ; if ( in_array ( $ field , $ acceptedFields ) ) { $ this -> orderByField = $ field ; } }
Sets the orderByField property to the specified field.

@param  string  $field

@return void
Sets the orderByField property to the specified field .