for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BitBag\SyliusCmsPlugin\Validator\Constraint;
use BitBag\SyliusCmsPlugin\Validator\FileMatchesTypeValidator;
use Symfony\Component\Validator\Constraint;
final class FileMatchesType extends Constraint
{
/** @var string */
public $messageImage = 'This file cannot be uploaded as an image';
public $messageVideo = 'This file cannot be uploaded as an video';
public $field;
public function getTargets(): string
return self::CLASS_CONSTRAINT;
}
public function validatedBy(): string
return FileMatchesTypeValidator::class;