1 | <?php |
||
16 | class HashElementBuilder |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Набор данных из которых строится хеш |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | private $hashParts = []; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @param ElementInterface $element |
||
29 | * |
||
30 | * @return string |
||
31 | * @throws \Nnx\FormComparator\Comparator\CollectionDiffService\Exception\RuntimeException |
||
32 | */ |
||
33 | public function hash(ElementInterface $element) |
||
49 | |||
50 | |||
51 | /** |
||
52 | * @param ElementInterface $element |
||
53 | * @param null|string $namePrefix |
||
54 | * |
||
55 | * @throws \Nnx\FormComparator\Comparator\CollectionDiffService\Exception\RuntimeException |
||
56 | */ |
||
57 | protected function buildHash(ElementInterface $element, $namePrefix = null) |
||
72 | |||
73 | /** |
||
74 | * Представлет значение элемента формы в виде строки |
||
75 | * |
||
76 | * @param $rawValue |
||
77 | * |
||
78 | * @return string |
||
79 | * @throws \Nnx\FormComparator\Comparator\CollectionDiffService\Exception\RuntimeException |
||
80 | */ |
||
81 | protected function normalizeValue($rawValue) |
||
96 | |||
97 | |||
98 | } |
||
99 |