Passed
Push — 6.4 ( 3d0a37...1ed39e )
by Christian
14:28 queued 13s
created

FlowTemplateConfigField   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSerializerClass() 0 3 1
A __construct() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Content\Flow\DataAbstractionLayer\Field;
4
5
use Shopware\Core\Content\Flow\DataAbstractionLayer\FieldSerializer\FlowTemplateConfigFieldSerializer;
6
use Shopware\Core\Framework\DataAbstractionLayer\Field\JsonField;
7
8
/**
9
 * @package business-ops
10
 *
11
 * @internal
12
 */
13
class FlowTemplateConfigField extends JsonField
14
{
15
    public function __construct(string $storageName, string $propertyName)
16
    {
17
        $this->storageName = $storageName;
18
        parent::__construct($storageName, $propertyName);
19
    }
20
21
    protected function getSerializerClass(): string
22
    {
23
        return FlowTemplateConfigFieldSerializer::class;
24
    }
25
}
26