You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
452 B
PHP
22 lines
452 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Http\Validation\Rules;
|
|
|
|
use Respect\Validation\Rules\In as RespectIn;
|
|
|
|
class In extends RespectIn
|
|
{
|
|
/**
|
|
* @param mixed $haystack
|
|
* @param bool $compareIdentical
|
|
*/
|
|
public function __construct($haystack, $compareIdentical = false)
|
|
{
|
|
if (!is_array($haystack)) {
|
|
$haystack = explode(',', $haystack);
|
|
}
|
|
|
|
parent::__construct($haystack, $compareIdentical);
|
|
}
|
|
}
|