1 | <?php |
||
23 | final class UniqueSimpleProductCodeValidator extends ConstraintValidator |
||
24 | { |
||
25 | /** |
||
26 | * @var ProductVariantRepositoryInterface |
||
27 | */ |
||
28 | private $productVariantRepository; |
||
29 | |||
30 | /** |
||
31 | * @param ProductVariantRepositoryInterface $productVariantRepository |
||
32 | */ |
||
33 | public function __construct(ProductVariantRepositoryInterface $productVariantRepository) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function validate($value, Constraint $constraint) |
||
60 | } |
||
61 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.