public function getNewerArticles(Article $article, int $size = null) : Collection
    {
        $size = $size ?? $this->articles->count();
        $timestamp = $article->timestamp;
        return $this->articles->filter(function ($article) use ($timestamp) {
            return $timestamp < $article->timestamp;
        })->values()->take($size);
    }
public function getNewerArticles(Article $article, int $size = null) : Collection
    {
        $size = $size ?? $this->articles->count();
        $timestamp = $article->timestamp;
        return $this->articles->filter(function ($article) use ($timestamp) {
            return $timestamp < $article->timestamp;
        })->values()->take($size);
    }
public function getNewerArticles ( Article $ article , int $ size = null ) : Collection { $ size = $ size ?? $ this -> articles -> count ( ) ; $ timestamp = $ article -> timestamp ; return $ this -> articles -> filter ( function ( $ article ) use ( $ timestamp ) { return $ timestamp < $ article -> timestamp ; } ) -> values ( ) -> take ( $ size ) ; }
get newer articles
@param  Article    $article target article
@param  integer    $size    take size
@return Collection          article Collection
get newer articles