public function add(string $name, $value)
    {
        if (in_array($name, ['exp', 'nbf', 'iat']) && is_int($value)) {
            $value = DateTimeImmutable::createFromFormat('U', $value);
        }

        $this->claims[$name] = $value;
    }
public function add(string $name, $value)
    {
        if (in_array($name, ['exp', 'nbf', 'iat']) && is_int($value)) {
            $value = DateTimeImmutable::createFromFormat('U', $value);
        }

        $this->claims[$name] = $value;
    }
public function add ( string $ name , $ value ) { if ( in_array ( $ name , [ 'exp' , 'nbf' , 'iat' ] ) && is_int ( $ value ) ) { $ value = DateTimeImmutable :: createFromFormat ( 'U' , $ value ) ; } $ this -> claims [ $ name ] = $ value ; }
Adds an extra claim

@param string $name The name of the claim to add
@param mixed $value The value to add
Adds an extra claim