error = $error; $this->code = $code; $this->details = $details; } public static function make( string $error, ?string $code = null, ?array $details = null ): self { return new self($error, $code, $details); } }