@@ -307,7 +307,7 @@ public function isArray()
307
307
* @return Variable
308
308
* @throws \Exception
309
309
*/
310
- public function isNotArray ()
310
+ public function notArray ()
311
311
{
312
312
if (is_array ($ this ->value )) {
313
313
throw $ this ->buildException (self ::EXCEPTION_TYPE_TEXT_NEGATIVE , ['{{type}} ' => 'array ' ]);
@@ -339,7 +339,7 @@ public function between($from, $to)
339
339
throw new \InvalidArgumentException ('Param $from must be less than $to ' );
340
340
}
341
341
342
- $ this ->numeric ()->isNotString ();
342
+ $ this ->numeric ()->notString ();
343
343
344
344
if ($ this ->value < $ from || $ this ->value > $ to ) {
345
345
throw $ this ->buildException (
@@ -374,7 +374,7 @@ public function betweenStrict($from, $to)
374
374
throw new \InvalidArgumentException ('Param $from must be less than $to ' );
375
375
}
376
376
377
- $ this ->numeric ()->isNotString ();
377
+ $ this ->numeric ()->notString ();
378
378
379
379
if ($ this ->value <= $ from || $ this ->value >= $ to ) {
380
380
throw $ this ->buildException (
@@ -407,7 +407,7 @@ public function bool()
407
407
* @return Variable
408
408
* @throws \InvalidArgumentException
409
409
*/
410
- public function isNotBool ()
410
+ public function notBool ()
411
411
{
412
412
if (is_bool ($ this ->value )) {
413
413
throw $ this ->buildException (self ::EXCEPTION_TYPE_TEXT_NEGATIVE , ['{{type}} ' => 'bool ' ]);
@@ -484,7 +484,7 @@ public function float()
484
484
* @return Variable
485
485
* @throws \InvalidArgumentException
486
486
*/
487
- public function isNotFloat ()
487
+ public function notFloat ()
488
488
{
489
489
if (is_float ($ this ->value )) {
490
490
throw $ this ->buildException (self ::EXCEPTION_TYPE_TEXT_NEGATIVE , ['{{type}} ' => 'float ' ]);
@@ -514,7 +514,7 @@ public function int()
514
514
* @return Variable
515
515
* @throws \InvalidArgumentException
516
516
*/
517
- public function isNotInt ()
517
+ public function notInt ()
518
518
{
519
519
if (is_int ($ this ->value )) {
520
520
throw $ this ->buildException (self ::EXCEPTION_TYPE_TEXT_NEGATIVE , ['{{type}} ' => 'int ' ]);
@@ -538,7 +538,7 @@ public function less($number)
538
538
throw new \InvalidArgumentException ('Param $number must be int or float ' );
539
539
}
540
540
541
- $ this ->numeric ()->isNotString ();
541
+ $ this ->numeric ()->notString ();
542
542
543
543
if ($ this ->value > $ number ) {
544
544
throw $ this ->buildException (self ::EXCEPTION_VALUE_TEXT_POSITIVE , ['{{value}} ' => 'less than ' . $ number ]);
@@ -561,7 +561,7 @@ public function more($number)
561
561
throw new \InvalidArgumentException ('Param $number must be int or float ' );
562
562
}
563
563
564
- $ this ->numeric ()->isNotString ();
564
+ $ this ->numeric ()->notString ();
565
565
566
566
if ($ this ->value < $ number ) {
567
567
throw $ this ->buildException (self ::EXCEPTION_VALUE_TEXT_POSITIVE , ['{{value}} ' => 'more than ' . $ number ]);
@@ -584,7 +584,7 @@ public function lessStrict($number)
584
584
throw new \InvalidArgumentException ('Param $number must be int or float ' );
585
585
}
586
586
587
- $ this ->numeric ()->isNotString ();
587
+ $ this ->numeric ()->notString ();
588
588
589
589
if ($ this ->value >= $ number ) {
590
590
throw $ this ->buildException (self ::EXCEPTION_VALUE_TEXT_POSITIVE , ['{{value}} ' => 'less than ' . $ number ]);
@@ -607,7 +607,7 @@ public function moreStrict($number)
607
607
throw new \InvalidArgumentException ('Param $number must be int or float ' );
608
608
}
609
609
610
- $ this ->numeric ()->isNotString ();
610
+ $ this ->numeric ()->notString ();
611
611
612
612
if ($ this ->value <= $ number ) {
613
613
throw $ this ->buildException (self ::EXCEPTION_VALUE_TEXT_POSITIVE , ['{{value}} ' => 'more than ' . $ number ]);
@@ -681,7 +681,7 @@ public function glob($pattern)
681
681
*/
682
682
public function negative ()
683
683
{
684
- $ this ->numeric ()->isNotString ();
684
+ $ this ->numeric ()->notString ();
685
685
686
686
if ($ this ->value >= 0 ) {
687
687
throw $ this ->buildException (self ::EXCEPTION_VALUE_TEXT_POSITIVE , ['{{value}} ' => 'negative ' ]);
@@ -698,7 +698,7 @@ public function negative()
698
698
*/
699
699
public function positive ()
700
700
{
701
- $ this ->numeric ()->isNotString ();
701
+ $ this ->numeric ()->notString ();
702
702
703
703
if ($ this ->value <= 0 ) {
704
704
throw $ this ->buildException (self ::EXCEPTION_VALUE_TEXT_POSITIVE , ['{{value}} ' => 'positive ' ]);
@@ -773,7 +773,7 @@ public function resource()
773
773
* @return Variable
774
774
* @throws \InvalidArgumentException
775
775
*/
776
- public function isNotResource ()
776
+ public function notResource ()
777
777
{
778
778
if (is_resource ($ this ->value )) {
779
779
throw $ this ->buildException (self ::EXCEPTION_TYPE_TEXT_NEGATIVE , ['{{type}} ' => 'resource ' ]);
@@ -803,7 +803,7 @@ public function string()
803
803
* @return Variable
804
804
* @throws \InvalidArgumentException
805
805
*/
806
- public function isNotString ()
806
+ public function notString ()
807
807
{
808
808
if (is_string ($ this ->value )) {
809
809
throw $ this ->buildException (self ::EXCEPTION_TYPE_TEXT_NEGATIVE , ['{{type}} ' => 'string ' ]);
@@ -832,7 +832,7 @@ public function toBool()
832
832
*/
833
833
public function toFloat ()
834
834
{
835
- $ this ->isNotArray ();
835
+ $ this ->notArray ();
836
836
837
837
$ this ->value = (float ) $ this ->value ;
838
838
@@ -847,7 +847,7 @@ public function toFloat()
847
847
*/
848
848
public function toInt ()
849
849
{
850
- $ this ->isNotArray ();
850
+ $ this ->notArray ();
851
851
852
852
$ this ->value = (int ) $ this ->value ;
853
853
@@ -862,7 +862,7 @@ public function toInt()
862
862
*/
863
863
public function toString ()
864
864
{
865
- $ this ->isNotArray ();
865
+ $ this ->notArray ();
866
866
867
867
$ this ->value = (string ) $ this ->value ;
868
868
0 commit comments