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