Total Complexity | 4 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | trait GeneralRules |
||
8 | { |
||
9 | public function excludeIf(string $field, $value) |
||
10 | { |
||
11 | return $this->rule("exclude_if:$field,$value"); |
||
|
|||
12 | } |
||
13 | |||
14 | public function excludeUnless(string $field, $value) |
||
15 | { |
||
16 | return $this->rule("exclude_unless:$field,$value"); |
||
17 | } |
||
18 | |||
19 | public function exists(string $table, string $column) |
||
20 | { |
||
21 | return $this->rule("exists:$table,$column"); |
||
22 | } |
||
23 | |||
24 | public function filled(){ |
||
26 | } |
||
27 | } |