Completed
Push — master ( c85fb7...4b358a )
by Adam
12:10
created

ProductMappingEnhancer::getExtraTraitClass()   A

↳ Parent: ProductMappingEnhancer

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * WellCommerce Open-Source E-Commerce Platform
4
 * 
5
 * This file is part of the WellCommerce package.
6
 *
7
 * (c) Adam Piotrowski <[email protected]>
8
 * 
9
 * For the full copyright and license information,
10
 * please view the LICENSE file that was distributed with this source code.
11
 */
12
13
namespace WellCommerce\Bundle\CatalogBundle\Enhancer;
14
15
use WellCommerce\Bundle\CatalogBundle\Entity\Extra\ProductExtraTrait;
16
use WellCommerce\Bundle\CatalogBundle\Entity\Product;
17
use WellCommerce\Component\DoctrineEnhancer\AbstractMappingEnhancer;
18
use WellCommerce\Component\DoctrineEnhancer\Definition\MappingDefinitionCollection;
19
20
/**
21
 * Class ProductMappingEnhancer
22
 *
23
 * @author  Adam Piotrowski <[email protected]>
24
 */
25
final class ProductMappingEnhancer extends AbstractMappingEnhancer
26
{
27
    protected function configureMappingDefinition(MappingDefinitionCollection $collection)
28
    {
29
    }
30
    
31
    public function getSupportedEntityClass(): string
32
    {
33
        return Product::class;
34
    }
35
    
36
    public function getExtraTraitClass(): string
37
    {
38
        return ProductExtraTrait::class;
39
    }
40
}
41