name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getFactory(): callable|string { return $this->factory; } public function getParameters(): array { return $this->parameters; } /** * Determine if the definition need to transfer to a proxy class. */ public function isNeedProxy(): bool { return $this->needProxy; } public function setNeedProxy($needProxy): self { $this->needProxy = $needProxy; return $this; } }