-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathValidatorInterface.php
44 lines (39 loc) · 922 Bytes
/
ValidatorInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* ValidatorInterface.php
*
* PHP Version 5
*
* @category magento2
* @package magento2
* @author David Verholen <[email protected]>
* @license http://opensource.org/licenses/OSL-3.0 OSL-3.0
* @link http://github.com/davidverholen
*/
namespace DavidVerholen\DynamicComponentRegistry\Validator\Component;
use DavidVerholen\DynamicComponentRegistry\Api\Data\ComponentInterface;
use DavidVerholen\DynamicComponentRegistry\Model\Component;
use Magento\Framework\Model\AbstractModel;
interface ValidatorInterface
{
/**
* validate
*
* @param ComponentInterface|AbstractModel $component
*
* @return boolean
*/
public function validate(ComponentInterface $component);
/**
* getErrors
*
* @return array
*/
public function getErrors();
/**
* hasErrors
*
* @return boolean
*/
public function hasErrors();
}