Completed
Push — master ( b2a240...2b5c08 )
by Klederson
18s
created

ProductVariantExists::validatedBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Sylius\ShopApiPlugin\Validator\Constraints;
4
5
use Symfony\Component\Validator\Constraint;
6
7
final class ProductVariantExists extends Constraint
8
{
9
    /**
10
     * @var string
11
     */
12
    public $message = 'sylius.shop_api.product_variant.exists';
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function getTargets()
18
    {
19
        return self::PROPERTY_CONSTRAINT;
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function validatedBy()
26
    {
27
        return 'sylius_shop_api_product_variant_exists_validator';
28
    }
29
}
30