for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yokai\EnumBundle;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* @author Yann Eugoné <[email protected]>
*/
class ConstantListTranslatedEnum extends ConfigurableTranslatedEnum
{
* @inheritDoc
public function __construct(
ConstantExtractor $extractor,
string $constantsPattern,
TranslatorInterface $translator,
string $transPattern,
string $name
) {
parent::__construct($translator, $transPattern, $name, $extractor->extract($constantsPattern));
}