Skip to content

Commit 72b423e

Browse files
committed
Merge Devloops changes
2 parents 9c49d71 + 50b6002 commit 72b423e

File tree

9 files changed

+575
-158
lines changed

9 files changed

+575
-158
lines changed

LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2020 Devloops LLC
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
"illuminate/support": "^7.0|^8.0",
5050
"typesense/typesense-php": "^4.0"
5151
},
52+
"config": {
53+
"platform": {
54+
"php": "8.0"
55+
}
56+
},
5257
"suggest": {
5358
"typesense/typesense-php": "Required to use the Typesense php client."
5459
},
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
namespace Devloops\LaravelTypesense\Classes;
4+
5+
/**
6+
* Class TypesenseDocumentIndexResponse.
7+
*
8+
* @date 02/10/2021
9+
*
10+
* @author Abdullah Al-Faqeir <[email protected]>
11+
*/
12+
class TypesenseDocumentIndexResponse
13+
{
14+
public function __construct(private ?int $code, private bool $success, private ?string $error = null, private ?array $document = null)
15+
{
16+
}
17+
18+
/**
19+
* @return int|null
20+
*/
21+
public function getCode(): ?int
22+
{
23+
return $this->code;
24+
}
25+
26+
/**
27+
* @return bool
28+
*/
29+
public function isSuccess(): bool
30+
{
31+
return $this->success;
32+
}
33+
34+
/**
35+
* @return string|null
36+
*/
37+
public function getError(): ?string
38+
{
39+
return $this->error;
40+
}
41+
42+
/**
43+
* @return array|null
44+
*/
45+
public function getDocument(): ?array
46+
{
47+
return $this->document;
48+
}
49+
}

0 commit comments

Comments
 (0)