File tree Expand file tree Collapse file tree 7 files changed +13
-7
lines changed Expand file tree Collapse file tree 7 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ f74b50a0c5a93e2042dd0899f67dc0d77d9f37b2
23
23
3c7aa0aeabda229e437d00339eabf9fe469fc67e
24
24
789187af9e0c8772c7ee8ec5d0d601368b624bd0
25
25
065611695e2356cd6dc8b5b5f6cfe8b51f720e1d
26
+ 92306ee17d877c6b2c3828eaeb2cbcce1d129875
Original file line number Diff line number Diff line change 2
2
3
3
namespace EncoreDigitalGroup \StdLib \Objects ;
4
4
5
- use EncoreDigitalGroup \StdLib \Support \Types \Arr as BaseArray ;
5
+ use EncoreDigitalGroup \StdLib \Objects \ Support \Types \Arr as BaseArray ;
6
6
7
- /** @deprecated Use EncoreDigitalGroup\StdLib\Support\Types\Arr instead. */
7
+ /** @deprecated Use EncoreDigitalGroup\StdLib\Objects\ Support\Types\Arr instead. */
8
8
class Arr extends BaseArray {}
Original file line number Diff line number Diff line change 2
2
3
3
namespace EncoreDigitalGroup \StdLib \Objects ;
4
4
5
- use EncoreDigitalGroup \StdLib \Support \Types \Number as BaseNumber ;
5
+ use EncoreDigitalGroup \StdLib \Objects \ Support \Types \Number as BaseNumber ;
6
6
7
7
/** @deprecated Use EncoreDigitalGroup\StdLib\Objects\Support\Types\Number instead. */
8
8
class Number extends BaseNumber {}
Original file line number Diff line number Diff line change 2
2
3
3
namespace EncoreDigitalGroup \StdLib \Objects ;
4
4
5
- use EncoreDigitalGroup \StdLib \Support \Types \Str as BaseString ;
5
+ use EncoreDigitalGroup \StdLib \Objects \ Support \Types \Str as BaseString ;
6
6
7
7
/** @deprecated Use EncoreDigitalGroup\StdLib\Objects\Support\Types\Str instead. */
8
8
class Str extends BaseString
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace EncoreDigitalGroup \StdLib \Support \Types ;
3
+ namespace EncoreDigitalGroup \StdLib \Objects \ Support \Types ;
4
4
5
5
use EncoreDigitalGroup \StdLib \Exceptions \NullExceptions \ArgumentNullException ;
6
6
use Illuminate \Support \Arr as ArraySupport ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace EncoreDigitalGroup \StdLib \Support \Types ;
3
+ namespace EncoreDigitalGroup \StdLib \Objects \ Support \Types ;
4
4
5
5
use Illuminate \Support \Number as NumberSupport ;
6
6
@@ -16,4 +16,9 @@ public static function toInt($value): int
16
16
{
17
17
return (int ) $ value ;
18
18
}
19
+
20
+ public static function validate (mixed $ value ): bool
21
+ {
22
+ return filter_var ($ value , FILTER_VALIDATE_INT ) !== false ;
23
+ }
19
24
}
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace EncoreDigitalGroup \StdLib \Support \Types ;
3
+ namespace EncoreDigitalGroup \StdLib \Objects \ Support \Types ;
4
4
5
5
/**
6
6
* @api
You can’t perform that action at this time.
0 commit comments