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 Factory implements FactoryInterface
{
* @var ServiceInterface
private $service;
* @var array<Reference|string, string>
private $factory;
* @param ServiceInterface $service
* @param string|Reference $factory
* @param string $factoryMethod
public function __construct(ServiceInterface $service, $factory, $factoryMethod)
$this->service = $service;
$this->factory = [$factory, $factoryMethod];
}
* {@inheritdoc}
public function getName()
return $this->service->getName();
public function getClass()
return $this->service->getClass();
public function getArguments()
return $this->service->getArguments();
public function getAutowiringTypes()
return $this->service->getAutowiringTypes();
public function getTags()
return $this->service->getTags();
public function getFactory()
return $this->factory;