1 | <?php |
||
14 | class AnonymizableValue |
||
15 | { |
||
16 | const __CLASS = __CLASS__; |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $formatter; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $value; |
||
25 | /** |
||
26 | * @var bool |
||
27 | */ |
||
28 | private $unique; |
||
29 | |||
30 | public function __construct($formatter, $value, $unique = false) |
||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getFakerFormatter() |
||
43 | |||
44 | /** |
||
45 | * If the value is optional, returns probability of presence. |
||
46 | * 1.0 = not optional |
||
47 | * 0.0 = always empty |
||
48 | * |
||
49 | * @return float |
||
50 | */ |
||
51 | public function getOptionalWeight() |
||
57 | |||
58 | public function isUnique() |
||
62 | |||
63 | /** |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function getValue() |
||
70 | |||
71 | /** |
||
72 | * @param mixed $value |
||
73 | * @return void |
||
74 | */ |
||
75 | public function setValue($value) |
||
79 | } |