lib/Github/Api/Notification.php
public function all($includingRead = false, $participating = false, DateTime $since = null, DateTime $before = null)
    {
        $parameters = [
            'all' => $includingRead,
            'participating' => $participating,
        ];

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

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

        return $this->get('/notifications', $parameters);
    }
public function all($includingRead = false, $participating = false, DateTime $since = null, DateTime $before = null)
    {
        $parameters = [
            'all' => $includingRead,
            'participating' => $participating,
        ];

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

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

        return $this->get('/notifications', $parameters);
    }
public function all ( $ includingRead = false , $ participating = false , DateTime $ since = null , DateTime $ before = null ) { $ parameters = [ 'all' => $ includingRead , 'participating' => $ participating , ] ; if ( $ since !== null ) { $ parameters [ 'since' ] = $ since -> format ( DateTime :: ISO8601 ) ; } if ( $ before !== null ) { $ parameters [ 'before' ] = $ before -> format ( DateTime :: ISO8601 ) ; } return $ this -> get ( '/notifications' , $ parameters ) ; }
Get a listing of notifications.

@link https://developer.github.com/v3/activity/notifications/

@param bool          $includingRead
@param bool          $participating
@param DateTime|null $since

@return array array of notifications
Get a listing of notifications .