public function set($name, $value)
    {
        if ($this->signature) {
            throw new \BadMethodCallException('You must unsign before make changes');
        }

        $this->claims[(string) $name] = $this->claimFactory->create($name, $value);

        return $this;
    }
public function set($name, $value)
    {
        if ($this->signature) {
            throw new \BadMethodCallException('You must unsign before make changes');
        }

        $this->claims[(string) $name] = $this->claimFactory->create($name, $value);

        return $this;
    }
public function set ( $ name , $ value ) { if ( $ this -> signature ) { throw new \ BadMethodCallException ( 'You must unsign before make changes' ) ; } $ this -> claims [ ( string ) $ name ] = $ this -> claimFactory -> create ( $ name , $ value ) ; return $ this ; }
Configures a claim item

@param string $name
@param mixed $value

@return Builder

@throws \BadMethodCallException When data has been already signed
Configures a claim item