mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-04 10:20:52 +00:00
23 lines
552 B
PHP
23 lines
552 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice;
|
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
class AssertChoice
|
|
{
|
|
public const RATINGS_DISCRIMINATOR_MAP = [
|
|
'5star' => 'App\Entity\Rating\FiveStar',
|
|
'4star' => 'App\Entity\Rating\FourStar',
|
|
];
|
|
|
|
public const SMALL_ONE = 'small_one';
|
|
|
|
/**
|
|
* @Assert\Choice(choices=AssertChoice::RATINGS_DISCRIMINATOR_MAP, groups={AssertChoice::SMALL_ONE})
|
|
*/
|
|
private $ratingType;
|
|
}
|