+5
src/Concerns/HasDomainExtensions.php
+5
src/Concerns/HasDomainExtensions.php
···
24
24
abstract protected function getRootClientClass(): string;
25
25
26
26
/**
27
+
* Get the root client instance.
28
+
*/
29
+
abstract public function root(): object;
30
+
31
+
/**
27
32
* Resolve a domain extension instance.
28
33
*/
29
34
protected function resolveDomainExtension(string $name): object
+11
src/Concerns/HasExtensions.php
+11
src/Concerns/HasExtensions.php
···
110
110
{
111
111
return static::hasExtension($name);
112
112
}
113
+
114
+
/**
115
+
* Get the root client instance.
116
+
*
117
+
* For root clients, this returns itself.
118
+
* Domain clients override this to return their parent.
119
+
*/
120
+
public function root(): static
121
+
{
122
+
return $this;
123
+
}
113
124
}