factory = $target; } public function getName(): string { return $this->name; } /** * @psalm-return callable(SimpleContainer): mixed */ public function getFactory(): callable { return $this->factory; } public function isShared(): bool { return $this->shared; } }