lib/Github/Api/Notification.php
public function markRead(DateTime $since = null)
    {
        $parameters = [];

        if ($since !== null) {
            $parameters['last_read_at'] = $since->format(DateTime::ISO8601);
        }

        $this->put('/notifications', $parameters);
    }
public function markRead(DateTime $since = null)
    {
        $parameters = [];

        if ($since !== null) {
            $parameters['last_read_at'] = $since->format(DateTime::ISO8601);
        }

        $this->put('/notifications', $parameters);
    }
public function markRead ( DateTime $ since = null ) { $ parameters = [ ] ; if ( $ since !== null ) { $ parameters [ 'last_read_at' ] = $ since -> format ( DateTime :: ISO8601 ) ; } $ this -> put ( '/notifications' , $ parameters ) ; }
Marks all notifications as read from the current date.

Optionally give DateTime to mark as read before that date.

@link https://developer.github.com/v3/activity/notifications/#mark-as-read

@param DateTime|null $since
Marks all notifications as read from the current date .