for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LaravelYaml package.
*
* (c) Théo FIDRY <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fidry\LaravelYaml\DependencyInjection\Definition;
/**
* @author Théo FIDRY <[email protected]>
final class Service implements ServiceInterface
{
* @var string
private $name;
private $class;
* @var string[]|Reference[]
private $arguments;
* @var string[]
private $autowiringTypes;
* @var array
private $tags;
* @param string $name Name of the service
* @param string $class FQCN of the service
* @param string[]|Reference[] $arguments List of arguments passed for the service instantiation
* @param array|null $autowiringTypes List of autowired classes
* @param array|null $tags
public function __construct($name, $class, array $arguments = [], array $autowiringTypes = [], array $tags = [])
$this->name = $name;
$this->class = $class;
$this->arguments = $arguments;
$this->autowiringTypes = $autowiringTypes;
$this->tags = $tags;
}
* {@inheritdoc}
public function getName()
return $this->name;
public function getClass()
return $this->class;
public function getArguments()
return $this->arguments;
public function getAutowiringTypes()
return $this->autowiringTypes;
public function getTags()
return $this->tags;