public function matches($value, $strict = true)
    {
        return $strict ? $this->value === $value : $this->value == $value;
    }
public function matches($value, $strict = true)
    {
        return $strict ? $this->value === $value : $this->value == $value;
    }
public function matches ( $ value , $ strict = true ) { return $ strict ? $ this -> value === $ value : $ this -> value == $ value ; }
Checks if the value matches the claim.

@param  mixed  $value
@param  bool  $strict

@return bool
Checks if the value matches the claim .