public function objectTail($filepath, $lines = 1, $desc = true)
    {
        $data = $this->tail($filepath, $lines);
        $tailed_log = explode(PHP_EOL, $data);
        $line_objects = [];

        foreach ($tailed_log as $line) {
            $line_objects[] = $this->parse($line);
        }

        return $desc ? $line_objects : array_reverse($line_objects);
    }
public function objectTail($filepath, $lines = 1, $desc = true)
    {
        $data = $this->tail($filepath, $lines);
        $tailed_log = explode(PHP_EOL, $data);
        $line_objects = [];

        foreach ($tailed_log as $line) {
            $line_objects[] = $this->parse($line);
        }

        return $desc ? $line_objects : array_reverse($line_objects);
    }
public function objectTail ( $ filepath , $ lines = 1 , $ desc = true ) { $ data = $ this -> tail ( $ filepath , $ lines ) ; $ tailed_log = explode ( PHP_EOL , $ data ) ; $ line_objects = [ ] ; foreach ( $ tailed_log as $ line ) { $ line_objects [ ] = $ this -> parse ( $ line ) ; } return $ desc ? $ line_objects : array_reverse ( $ line_objects ) ; }
Get the objects of a tailed file

@param string $filepath
@param int $lines
@param bool $desc
@return array
Get the objects of a tailed file