ProductVariant   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gewebe\SyliusProductDepositPlugin\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
use Gewebe\SyliusProductDepositPlugin\Entity\ProductVariantInterface as DepositProductVariantInterface;
9
use Sylius\Component\Core\Model\ProductVariant as BaseProductVariant;
10
11
/**
12
 * Entity for the product variant with deposits implemented as trait
13
 *
14
 * @ORM\Entity
15
 * @ORM\Table(name="sylius_product_variant")
16
 *
17
 * @psalm-suppress PropertyNotSetInConstructor
18
 */
19
class ProductVariant extends BaseProductVariant implements DepositProductVariantInterface
20
{
21
    use ProductVariantDepositTrait;
22
23
    public function __construct()
24
    {
25
        parent::__construct();
26
27
        $this->initProductVariantDepositTrait();
28
    }
29
}
30