Your IP : 18.217.242.39


Current Path : /home/lentoinv/lentoria.com/vendor/laravel/framework/src/Illuminate/Validation/Rules/
Upload File :
Current File : //home/lentoinv/lentoria.com/vendor/laravel/framework/src/Illuminate/Validation/Rules/NotIn.php

<?php

namespace Illuminate\Validation\Rules;

class NotIn
{
    /**
     * The name of the rule.
     */
    protected $rule = 'not_in';

    /**
     * The accepted values.
     *
     * @var array
     */
    protected $values;

    /**
     * Create a new "not in" rule instance.
     *
     * @param  array  $values
     * @return void
     */
    public function __construct(array $values)
    {
        $this->values = $values;
    }

    /**
     * Convert the rule to a validation string.
     *
     * @return string
     */
    public function __toString()
    {
        $values = array_map(function ($value) {
            return '"'.str_replace('"', '""', $value).'"';
        }, $this->values);

        return $this->rule.':'.implode(',', $values);
    }
}

?>