Document/Serializer/ArticleWebsiteSubscriber.php
private function getArticleForPage(ArticleDocument $article, $pageNumber)
    {
        $children = $article->getChildren();
        if (null === $children || 1 === $pageNumber) {
            return $article;
        }

        foreach ($children as $child) {
            if ($child instanceof ArticlePageDocument && $child->getPageNumber() === $pageNumber) {
                return $child;
            }
        }

        return $article;
    }
private function getArticleForPage(ArticleDocument $article, $pageNumber)
    {
        $children = $article->getChildren();
        if (null === $children || 1 === $pageNumber) {
            return $article;
        }

        foreach ($children as $child) {
            if ($child instanceof ArticlePageDocument && $child->getPageNumber() === $pageNumber) {
                return $child;
            }
        }

        return $article;
    }
private function getArticleForPage ( ArticleDocument $ article , $ pageNumber ) { $ children = $ article -> getChildren ( ) ; if ( null === $ children || 1 === $ pageNumber ) { return $ article ; } foreach ( $ children as $ child ) { if ( $ child instanceof ArticlePageDocument && $ child -> getPageNumber ( ) === $ pageNumber ) { return $ child ; } } return $ article ; }
Returns article page by page-number.

@param ArticleDocument $article
@param int $pageNumber

@return ArticleDocument
Returns article page by page - number .