connection = $connection; } public function getConnection(?string $name = null): Connection { if ($name !== null) { throw InvalidLoader::noMultipleConnections($this); } return $this->connection; } }