FormatExtensionInterface::validate()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace League\JsonGuard\Constraint\DraftFour\Format;
4
5
use League\JsonGuard\Validator;
6
7
interface FormatExtensionInterface
8
{
9
    /**
10
     * @param string                      $value The value to validate
11
     * @param \League\JsonGuard\Validator $validator
12
     *
13
     * @return \League\JsonGuard\ValidationError|null A ValidationError if validation fails, otherwise null.
14
     */
15
    public function validate($value, Validator $validator);
16
}
17