mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
25 lines
538 B
PHP
25 lines
538 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Sales\Model;
|
|
|
|
use Magento\Framework\Exception\NoSuchEntityException;
|
|
use Magento\Sales\Exception\DocumentValidationException;
|
|
|
|
/**
|
|
* Interface ValidatorInterface
|
|
* @api
|
|
*/
|
|
interface ValidatorInterface
|
|
{
|
|
/**
|
|
* @param object $entity
|
|
* @return \Magento\Framework\Phrase[]
|
|
* @throws DocumentValidationException
|
|
* @throws NoSuchEntityException
|
|
*/
|
|
public function validate($entity);
|
|
}
|