<?php
namespace DreadLabs\VantomasWebsite\Page;

use DreadLabs\VantomasWebsite\Archive\SearchInterface;
use DreadLabs\VantomasWebsite\RssFeed\ConfigurationInterface as RssFeedConfigurationInterface;
use DreadLabs\VantomasWebsite\Sitemap\ConfigurationInterface as SitemapConfiguration;
use DreadLabs\VantomasWebsite\Taxonomy\TagSearchInterface;

interface PageRepositoryInterface {

	/**
	 * Searches for archived (page) nodes by given criteria
	 *
	 * @param SearchInterface $search
	 * @return Page[]
	 */
	public function findArchived(SearchInterface $search);

	/**
	 * Finds last updated pages within $parentPageId
	 *
	 * @param PageId $parentPageId
	 * @param int $offset
	 * @param int $limit
	 * @return Page[]
	 */
	public function findLastUpdated(PageId $parentPageId, $offset = 0, $limit = 1);

	/**
	 * Finds all pages with tags
	 *
	 * @return Page[]
	 */
	public function findAllWithTags();

	/**
	 * @param TagSearchInterface $tagSearch
	 * @return Page[]
	 */
	public function findAllByTag(TagSearchInterface $tagSearch);

	/**
	 * @param SitemapConfiguration $configuration
	 * @return Page[]
	 */
	public function findForSitemapXml(SitemapConfiguration $configuration);


	/**
	 * @param RssFeedConfigurationInterface $configuration
	 * @return Page[]
	 */
	public function findAllForRssFeed(RssFeedConfigurationInterface $configuration);
}
<?php
namespace DreadLabs\VantomasWebsite\Page;

use DreadLabs\VantomasWebsite\Archive\SearchInterface;
use DreadLabs\VantomasWebsite\RssFeed\ConfigurationInterface as RssFeedConfigurationInterface;
use DreadLabs\VantomasWebsite\Sitemap\ConfigurationInterface as SitemapConfiguration;
use DreadLabs\VantomasWebsite\Taxonomy\TagSearchInterface;

interface PageRepositoryInterface {

	/**
	 * Searches for archived (page) nodes by given criteria
	 *
	 * @param SearchInterface $search
	 * @return Page[]
	 */
	public function findArchived(SearchInterface $search);

	/**
	 * Finds last updated pages of type $pageType
	 *
	 * @param PageType $pageType
	 * @param int $offset
	 * @param int $limit
	 * @return Page[]
	 */
	public function findLastUpdated(PageType $pageType, $offset = 0, $limit = 1);

	/**
	 * Finds all pages with tags
	 *
	 * @return Page[]
	 */
	public function findAllWithTags();

	/**
	 * @param TagSearchInterface $tagSearch
	 * @return Page[]
	 */
	public function findAllByTag(TagSearchInterface $tagSearch);

	/**
	 * @param SitemapConfiguration $configuration
	 * @return Page[]
	 */
	public function findForSitemapXml(SitemapConfiguration $configuration);


	/**
	 * @param RssFeedConfigurationInterface $configuration
	 * @return Page[]
	 */
	public function findAllForRssFeed(RssFeedConfigurationInterface $configuration);
}
Switch lastUpdated pages rendering to PageType usage
[TASK] Switch lastUpdated pages rendering to PageType usage
