-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathService.php
69 lines (53 loc) · 1 KB
/
Service.php
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
65
66
67
68
69
<?php declare(strict_types = 1);
namespace PHPStan\Symfony;
final class Service implements ServiceDefinition
{
private string $id;
private ?string $class = null;
private bool $public;
private bool $synthetic;
private ?string $alias = null;
/** @var ServiceTag[] */
private array $tags;
/** @param ServiceTag[] $tags */
public function __construct(
string $id,
?string $class,
bool $public,
bool $synthetic,
?string $alias,
array $tags = []
)
{
$this->id = $id;
$this->class = $class;
$this->public = $public;
$this->synthetic = $synthetic;
$this->alias = $alias;
$this->tags = $tags;
}
public function getId(): string
{
return $this->id;
}
public function getClass(): ?string
{
return $this->class;
}
public function isPublic(): bool
{
return $this->public;
}
public function isSynthetic(): bool
{
return $this->synthetic;
}
public function getAlias(): ?string
{
return $this->alias;
}
public function getTags(): array
{
return $this->tags;
}
}