-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
599 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
namespace Typesense\LaravelTypesense\Classes; | ||
|
||
/** | ||
* Class TypesenseDocumentIndexResponse. | ||
* | ||
* @date 02/10/2021 | ||
* | ||
* @author Abdullah Al-Faqeir <abdullah@devloops.net> | ||
*/ | ||
class TypesenseDocumentIndexResponse | ||
{ | ||
public function __construct(private ?int $code, private bool $success, private ?string $error = null, private ?array $document = null) | ||
{ | ||
} | ||
|
||
/** | ||
* @return int|null | ||
*/ | ||
public function getCode(): ?int | ||
{ | ||
return $this->code; | ||
} | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function isSuccess(): bool | ||
{ | ||
return $this->success; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getError(): ?string | ||
{ | ||
return $this->error; | ||
} | ||
|
||
/** | ||
* @return array|null | ||
*/ | ||
public function getDocument(): ?array | ||
{ | ||
return $this->document; | ||
} | ||
} |
Oops, something went wrong.