OpenXE/classes/Modules/Pipedrive/Validator/PipedriveValidatorInterface.php

29 lines
570 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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;
}