ProductVariant::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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