| 1 | <?php |
||
| 17 | final class Service implements ServiceInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $name; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $class; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string[]|Reference[] |
||
| 31 | */ |
||
| 32 | private $arguments; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string[] |
||
| 36 | */ |
||
| 37 | private $autowiringTypes; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var array |
||
| 41 | */ |
||
| 42 | private $tags; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $name Name of the service |
||
| 46 | * @param string $class FQCN of the service |
||
| 47 | * @param string[]|Reference[] $arguments List of arguments passed for the service instantiation |
||
| 48 | * @param array|null $autowiringTypes List of autowired classes |
||
| 49 | * @param array|null $tags |
||
| 50 | */ |
||
| 51 | 4 | public function __construct($name, $class, array $arguments = [], array $autowiringTypes = [], array $tags = []) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | 4 | public function getName() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * {@inheritdoc} |
||
| 70 | */ |
||
| 71 | 4 | public function getClass() |
|
| 75 | |||
| 76 | /** |
||
| 77 | * {@inheritdoc} |
||
| 78 | */ |
||
| 79 | 4 | public function getArguments() |
|
| 83 | |||
| 84 | /** |
||
| 85 | * {@inheritdoc} |
||
| 86 | */ |
||
| 87 | 4 | public function getAutowiringTypes() |
|
| 91 | |||
| 92 | /** |
||
| 93 | * {@inheritdoc} |
||
| 94 | */ |
||
| 95 | 4 | public function getTags() |
|
| 99 | } |
||
| 100 |