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

ConfigurableProduct   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTargets() 0 4 1
A validatedBy() 0 4 1
1
<?php
2
3
namespace Sylius\ShopApiPlugin\Validator\Constraints;
4
5
use Symfony\Component\Validator\Constraint;
6
7
final class ConfigurableProduct extends Constraint
8
{
9
    /**
10
     * @var string
11
     */
12
    public $message = 'sylius.shop_api.product.configurable';
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_configurable_product_validator';
28
    }
29
}
30