mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
29 lines
570 B
PHP
29 lines
570 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Xentral\Modules\Pipedrive\Validator;
|
|
|
|
use Xentral\Modules\Pipedrive\Exception\PipedriveValidatorException;
|
|
|
|
interface PipedriveValidatorInterface
|
|
{
|
|
/**
|
|
* Checks whether the given data is valid or not
|
|
*
|
|
* @param array $data
|
|
*
|
|
* @throws PipedriveValidatorException
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isValid(array $data = []): bool;
|
|
|
|
/**
|
|
* Defines the default validator data object
|
|
*
|
|
* @return array
|
|
*/
|
|
public function validatorRuleDefault(): array;
|
|
}
|