1 | <?php |
||
2 | |||
3 | |||
4 | namespace Larapie\Actions\Attributes\Rules; |
||
5 | |||
6 | |||
7 | trait IntegerRules |
||
8 | { |
||
9 | public function min(int $value) |
||
10 | { |
||
11 | return $this->rule("min:$value"); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
12 | } |
||
13 | |||
14 | public function max(int $value) |
||
15 | { |
||
16 | return $this->rule("max:$value"); |
||
17 | } |
||
18 | |||
19 | public function size(int $size) |
||
20 | { |
||
21 | return $this->rule("size:$size"); |
||
22 | } |
||
23 | } |