Phan\Language\FQSEN\FullyQualifiedGlobalStructuralElement::withAlternateId PHP Метод

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

public withAlternateId ( integer $alternate_id ) : static
$alternate_id integer
Результат static A FQSEN with the given alternate_id set
    public function withAlternateId(int $alternate_id)
    {
        if ($this->getAlternateId() === $alternate_id) {
            return $this;
        }
        assert($alternate_id < 1000, "Your alternate IDs have run away");
        return static::make($this->getNamespace(), $this->getName(), $alternate_id);
    }