-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathShards.php
More file actions
64 lines (49 loc) · 747 Bytes
/
Shards.php
File metadata and controls
64 lines (49 loc) · 747 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
54
55
56
57
58
59
60
61
62
63
64
<?php declare(strict_types = 1);
namespace Spameri\ElasticQuery\Response;
class Shards
{
/**
* @var int
*/
private $total;
/**
* @var int
*/
private $successful;
/**
* @var int
*/
private $skipped;
/**
* @var int
*/
private $failed;
public function __construct(
int $total
, int $successful
, int $skipped
, int $failed
)
{
$this->total = $total;
$this->successful = $successful;
$this->skipped = $skipped;
$this->failed = $failed;
}
public function total(): int
{
return $this->total;
}
public function successful(): int
{
return $this->successful;
}
public function skipped(): int
{
return $this->skipped;
}
public function failed(): int
{
return $this->failed;
}
}