public function setValue($value)
    {
        if (! $this->validate($value)) {
            throw new InvalidClaimException('Invalid value provided for claim "'.$this->getName().'": '.$value);
        }

        $this->value = $value;

        return $this;
    }
public function setValue($value)
    {
        if (! $this->validate($value)) {
            throw new InvalidClaimException('Invalid value provided for claim "'.$this->getName().'": '.$value);
        }

        $this->value = $value;

        return $this;
    }
public function setValue ( $ value ) { if ( ! $ this -> validate ( $ value ) ) { throw new InvalidClaimException ( 'Invalid value provided for claim "' . $ this -> getName ( ) . '": ' . $ value ) ; } $ this -> value = $ value ; return $ this ; }
Set the claim value, and call a validate method if available.

@param $value
@throws \Lia\Addons\JWTAuth\Exceptions\InvalidClaimException
@return $this
Set the claim value and call a validate method if available .