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