tikiwiki/packages/tiki-pkg-tikimanager/symfony/dependency-injection/Tests/Fixtures/BarFactory.php
2023-11-20 20:52:04 +00:00

22 lines
356 B
PHP
Executable File

<?php
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
class BarFactory
{
/**
* @var iterable
*/
private $bars;
public function __construct(iterable $bars)
{
$this->bars = iterator_to_array($bars);
}
public function getDefaultBar(): BarInterface
{
return reset($this->bars);
}
}