public function setValue($value)
    {
        if ($value instanceof DateInterval) {
            $value = Utils::now()->add($value);
        }

        if ($value instanceof DateTimeInterface) {
            $value = $value->getTimestamp();
        }

        return parent::setValue($value);
    }
public function setValue($value)
    {
        if ($value instanceof DateInterval) {
            $value = Utils::now()->add($value);
        }

        if ($value instanceof DateTimeInterface) {
            $value = $value->getTimestamp();
        }

        return parent::setValue($value);
    }
public function setValue ( $ value ) { if ( $ value instanceof DateInterval ) { $ value = Utils :: now ( ) -> add ( $ value ) ; } if ( $ value instanceof DateTimeInterface ) { $ value = $ value -> getTimestamp ( ) ; } return parent :: setValue ( $ value ) ; }
Set the claim value, and call a validate method.

@param  mixed  $value

@throws \Tymon\JWTAuth\Exceptions\InvalidClaimException

@return $this
Set the claim value and call a validate method .