Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class DocumentUniqueField |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $name; |
||
13 | |||
14 | /** |
||
15 | * @var |
||
16 | */ |
||
17 | private $schema; |
||
18 | |||
19 | /** |
||
20 | * @param $documentUniqueFieldConfig |
||
21 | * @param Schema $schema |
||
22 | */ |
||
23 | public function __construct($documentUniqueFieldConfig, Schema $schema) |
||
24 | { |
||
25 | $this->name = $documentUniqueFieldConfig['name']; |
||
26 | $this->schema = $schema; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getName() |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param object $entity |
||
39 | * @param array $entityConfig |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getValue($entity, $entityConfig) |
||
53 | } |