closure = $closure; $this->doc = $doc; } public function getClosure(): Closure { return $this->closure; } public function getDoc(): ?string { return $this->doc; } public function setDoc(?string $val): void { $this->doc = $val; } abstract public function call(array $args); }