id = $id; } elseif ($name !== null) { $this->id = $name; } else { throw new InvalidArgumentException( 'Either the id or name must be set to a non-null value.', ); } } /** @return ?non-empty-string */ public function getSchemaName(): ?string { return $this->referencingSchemaName; } /** @return non-empty-string */ public function getTableName(): string { return $this->referencingTableName; } /** @return int|non-empty-string */ public function getId(): int|string { return $this->id; } /** @return ?non-empty-string */ public function getName(): ?string { return $this->name; } /** @return ?non-empty-string */ public function getReferencedSchemaName(): ?string { return $this->referencedSchemaName; } /** @return non-empty-string */ public function getReferencedTableName(): string { return $this->referencedTableName; } public function getMatchType(): MatchType { return $this->matchType; } public function getOnUpdateAction(): ReferentialAction { return $this->onUpdateAction; } public function getOnDeleteAction(): ReferentialAction { return $this->onDeleteAction; } public function isDeferrable(): bool { return $this->isDeferrable; } public function isDeferred(): bool { return $this->isDeferred; } /** @return non-empty-string */ public function getReferencingColumnName(): string { return $this->referencingColumnName; } /** @return non-empty-string */ public function getReferencedColumnName(): string { return $this->referencedColumnName; } }