-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDetails.php
More file actions
53 lines (37 loc) · 989 Bytes
/
Details.php
File metadata and controls
53 lines (37 loc) · 989 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
42
43
44
45
46
47
48
49
50
51
52
53
<?php declare(strict_types = 1);
namespace App\ProductModule\Entity\Product;
class Details implements \Spameri\Elastic\Entity\EntityInterface
{
/**
* @var \App\ProductModule\Entity\Product\Details\TagCollection
*/
private $tags;
/**
* @var \App\ProductModule\Entity\Product\Details\Accessories
*/
private $accessories;
public function __construct(
\App\ProductModule\Entity\Product\Details\TagCollection $tags,
\App\ProductModule\Entity\Product\Details\Accessories $accessories
)
{
$this->tags = $tags;
$this->accessories = $accessories;
}
public function key(): string
{
return 'Only if this is somewhere part of collection.';
}
public function entityVariables(): array
{
return \get_object_vars($this);
}
public function tags(): \App\ProductModule\Entity\Product\Details\TagCollection
{
return $this->tags;
}
public function accessories(): \App\ProductModule\Entity\Product\Details\Accessories
{
return $this->accessories;
}
}