Lcobucci\JWT\Builder::with PHP Method

with() public method

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