Passed
Push — feature/initial-implementation ( fae671...591f29 )
by Fike
02:37
created

Validator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 8
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 6 1
1
<?php
2
3
namespace AmaTeam\ElasticSearch\Indexing;
4
5
use AmaTeam\ElasticSearch\API\Indexing\Validation\ContextInterface;
6
use AmaTeam\ElasticSearch\API\Indexing\ValidatorInterface;
7
use AmaTeam\ElasticSearch\API\IndexingInterface;
8
use Symfony\Component\Validator\ConstraintViolationList;
9
use Symfony\Component\Validator\ConstraintViolationListInterface;
10
11
class Validator implements ValidatorInterface
12
{
13
    public function validate(
14
        IndexingInterface $indexing,
15
        ContextInterface $context = null
16
    ): ConstraintViolationListInterface {
17
        // TODO: Implement validate() method.
18
        return new ConstraintViolationList();
19
    }
20
}
21