-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathSpotlightSearchResult.php
More file actions
41 lines (34 loc) · 790 Bytes
/
SpotlightSearchResult.php
File metadata and controls
41 lines (34 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace LivewireUI\Spotlight;
class SpotlightSearchResult
{
protected mixed $id;
protected string $name;
protected ?string $description;
public function __construct(mixed $id, string $name, ?string $description)
{
$this->id = $id;
$this->name = $name;
$this->description = $description;
}
public function getId(): mixed
{
return $this->id;
}
public function getName(): string
{
return $this->name;
}
public function getDescription(): ?string
{
return $this->description;
}
public function toArray(): array
{
return [
'id' => $this->id,
'name' => $this->name,
'description' => $this->description,
];
}
}