1 | <?php |
||
23 | class Setting |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $user_name; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $user_password; |
||
34 | |||
35 | /** |
||
36 | * @Assert\Type(type="bool", message="The value {{ value }} is not a valid {{ type }}.") |
||
37 | * |
||
38 | * @var bool |
||
39 | */ |
||
40 | protected $sync_remove = true; |
||
41 | |||
42 | /** |
||
43 | * @Assert\Type(type="bool", message="The value {{ value }} is not a valid {{ type }}.") |
||
44 | * |
||
45 | * @var bool |
||
46 | */ |
||
47 | protected $sync_insert = true; |
||
48 | |||
49 | /** |
||
50 | * @Assert\Type(type="bool", message="The value {{ value }} is not a valid {{ type }}.") |
||
51 | * |
||
52 | * @var bool |
||
53 | */ |
||
54 | protected $sync_update = true; |
||
55 | |||
56 | /** |
||
57 | * Get user name |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getUserName() |
||
65 | |||
66 | /** |
||
67 | * @param string $user_name |
||
68 | * |
||
69 | * @return Setting |
||
70 | */ |
||
71 | public function setUserName($user_name) |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getUserPassword() |
||
84 | |||
85 | /** |
||
86 | * @param string $user_password |
||
87 | * |
||
88 | * @return Setting |
||
89 | */ |
||
90 | public function setUserPassword($user_password) |
||
95 | |||
96 | /** |
||
97 | * @return bool |
||
98 | */ |
||
99 | public function getSyncRemove() |
||
103 | |||
104 | /** |
||
105 | * @param bool $sync_remove |
||
106 | * |
||
107 | * @return Setting |
||
108 | */ |
||
109 | public function setSyncRemove($sync_remove) |
||
114 | |||
115 | /** |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function getSyncInsert() |
||
122 | |||
123 | /** |
||
124 | * @param bool $sync_insert |
||
125 | * |
||
126 | * @return Setting |
||
127 | */ |
||
128 | public function setSyncInsert($sync_insert) |
||
133 | |||
134 | /** |
||
135 | * @return bool |
||
136 | */ |
||
137 | public function getSyncUpdate() |
||
141 | |||
142 | /** |
||
143 | * @param bool $sync_update |
||
144 | * |
||
145 | * @return Setting |
||
146 | */ |
||
147 | public function setSyncUpdate($sync_update) |
||
152 | |||
153 | /** |
||
154 | * @param ExecutionContextInterface $context |
||
155 | */ |
||
156 | public function isPasswordNotEmpty(ExecutionContextInterface $context) |
||
165 | } |
||
166 |