Lcobucci\JWT\Builder::with PHP Метод

with() публичный Метод

Configures a claim item
public with ( string $name, mixed $value ) : Builder
$name string
$value mixed
Результат 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;
    }