19declare(strict_types=1);
37 public readonly mixed $aux,
45 $d->addDependant($this);
66 if (!is_null($this->component)) {
67 throw new \LogicException(
68 "There already is a component here."
76 if (is_null($this->component)) {
77 throw new \LogicException(
78 "There is no component here."
87 $this->dependencies[(string) $in] = $in;
97 $this->resolves[] = $in;
102 $this->resolves = [];
A dependency where the component needs something from the world.
A dependency where the component gives something to the world.
__construct(protected OutType $type, string $name, public readonly mixed $aux, array $dependencies)
setComponent(OfComponent $component)