src/Jackiedo/LogReader/LogReader.php
public function markAsRead()
    {
        $entries = $this->get();

        $count = 0;

        foreach ($entries as $entry) {
            if ($entry->markAsRead()) {
                ++$count;
            }
        }

        return $count;
    }
public function markAsRead()
    {
        $entries = $this->get();

        $count = 0;

        foreach ($entries as $entry) {
            if ($entry->markAsRead()) {
                ++$count;
            }
        }

        return $count;
    }
public function markAsRead ( ) { $ entries = $ this -> get ( ) ; $ count = 0 ; foreach ( $ entries as $ entry ) { if ( $ entry -> markAsRead ( ) ) { ++ $ count ; } } return $ count ; }
Marks all retrieved log entries as read and
returns the number of entries that have been marked.

@return int
Marks all retrieved log entries as read and returns the number of entries that have been marked .