mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
30 lines
555 B
PHP
30 lines
555 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\Cms\Model\PageRepository;
|
|
|
|
use Magento\Cms\Api\Data\PageInterface;
|
|
use Magento\Framework\Exception\LocalizedException;
|
|
|
|
/**
|
|
* Validate a page repository
|
|
*
|
|
* @api
|
|
*/
|
|
interface ValidatorInterface
|
|
{
|
|
/**
|
|
* Assert the given page valid
|
|
*
|
|
* @param PageInterface $page
|
|
* @return void
|
|
* @throws LocalizedException
|
|
*/
|
|
public function validate(PageInterface $page): void;
|
|
}
|