1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21:
<?php
/*
* Copyright 2017 Jack Sleight <http://jacksleight.com/>
* This source file is subject to the MIT license that is bundled with this package in the file LICENCE.
*/
namespace Coast\Validator\Rule;
use Coast\Validator\Rule;
class ArrayType extends Rule
{
protected $_name = 'array';
protected function _validate($value)
{
if (!is_array($value)) {
$this->error();
}
}
}