1 | <?php declare(strict_types=1); |
||
16 | final class FieldReplaceResult |
||
17 | { |
||
18 | /** @var ColumnMetadata */ |
||
19 | private $columnMetadata; |
||
20 | |||
21 | /** @var int */ |
||
22 | private $replacedCount; |
||
23 | |||
24 | /** @var string[] */ |
||
25 | private $errorList; |
||
26 | |||
27 | /** @var string */ |
||
28 | private $oldValue; |
||
29 | |||
30 | /** @var string */ |
||
31 | private $newValue; |
||
32 | |||
33 | |||
34 | /** |
||
35 | * @param ColumnMetadata $columnMetadata |
||
36 | * @param int $replacedCount |
||
37 | * @param string[] $errorList |
||
38 | * @param string $newValue |
||
39 | */ |
||
40 | 14 | public function __construct( |
|
53 | |||
54 | /** |
||
55 | * Get the number of replacements in this field. |
||
56 | */ |
||
57 | 14 | public function getReplacedCount(): int |
|
61 | |||
62 | /** |
||
63 | * @return string[] |
||
64 | */ |
||
65 | 14 | public function getErrorList(): array |
|
69 | |||
70 | 1 | public function getOldValue(): string |
|
74 | |||
75 | 14 | public function getNewValue(): string |
|
79 | |||
80 | public function getColumnMetadata(): ColumnMetadata |
||
84 | } |