Added vendor/ directory for Composer's installed files
This commit is contained in:
23
vendor/alexgarrett/violin/src/Rules/ArrayRule.php
vendored
Executable file
23
vendor/alexgarrett/violin/src/Rules/ArrayRule.php
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Violin\Rules;
|
||||
|
||||
use Violin\Contracts\RuleContract;
|
||||
|
||||
class ArrayRule implements RuleContract
|
||||
{
|
||||
public function run($value, $input, $args)
|
||||
{
|
||||
return is_array($value);
|
||||
}
|
||||
|
||||
public function error()
|
||||
{
|
||||
return '{field} must be an array.';
|
||||
}
|
||||
|
||||
public function canSkip()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user