Skip to content

Commit

Permalink
remove extension
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 17, 2016
1 parent 68ba973 commit 336a807
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/Illuminate/Validation/Rules/NotIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,38 @@

namespace Illuminate\Validation\Rules;

class NotIn extends In
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()
{
return $this->rule.':'.implode(',', $this->values);
}
}

0 comments on commit 336a807

Please sign in to comment.