We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526346f commit f569520Copy full SHA for f569520
1 file changed
src/ValidationRules/BooleanValidation.php
@@ -0,0 +1,29 @@
1
+<?php
2
+
3
+namespace ArrayUtils\ValidationRules;
4
5
+use ArrayUtils\ValidationRule;
6
7
+class BooleanValidation implements ValidationRule {
8
+ /**
9
+ * @return string
10
+ */
11
+ public function getIdentifier() {
12
+ return "boolean";
13
+ }
14
15
16
+ * @param $value
17
+ *
18
+ * @return array
19
20
+ public function validate($value) {
21
+ return is_bool($value) ? array() : array("O campo deve ser um valor boleano.");
22
23
24
25
+ * @param mixed $params
26
27
+ public function setParams($params) {
28
29
+}
0 commit comments