for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AmaTeam\ElasticSearch\Mapping\Parameter;
use Symfony\Component\Validator\Constraints\Choice;
abstract class AbstractEnumParameter extends AbstractParameter
{
abstract public function getAllowedValues();
public function getConstraints(): array
return [new Choice(['choices' => $this->getAllowedValues()])];
}