19 declare(strict_types=1);
34 protected array $resolved_by = []
37 $name =
new Name($name);
59 $this->dependant[(string) $out] = $out;
65 if ($this->type !== InType::SEEK && count($this->resolved_by) > 0) {
67 "Dependency of type {$this->type} can only be resolved once." 70 $this->resolved_by[] = $other;
76 return $this->resolved_by;
81 $this->resolved_by = [];
__construct(protected InType $type, string $name, protected array $resolved_by=[])
A dependency where the component needs something from the world.
A dependency where the component gives something to the world.
addResolution(Out $other)