FormatExtensionInterface
last analyzed

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
validate() 0 1 ?
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