SubSellerFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A create() 0 3 1
1
<?php
2
/**
3
 * Copyright © Getnet. All rights reserved.
4
 *
5
 * @author    Bruno Elisei <[email protected]>
6
 * See LICENSE for license details.
7
 */
8
9
/**
10
 * Sub Seller factory.
11
 *
12
 * @author     Magento Core Team <[email protected]>
13
 */
14
15
namespace Getnet\SubSellerMagento\Model\Seller;
16
17
class SubSellerFactory
18
{
19
    /**
20
     * @var \Magento\Framework\ObjectManagerInterface
21
     */
22
    protected $_objectManager;
23
24
    /**
25
     * @param \Magento\Framework\ObjectManagerInterface $objectManager
26
     */
27
    public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
28
    {
29
        $this->_objectManager = $objectManager;
30
    }
31
32
    /**
33
     * Create new sub seller model.
34
     *
35
     * @param array $arguments
36
     *
37
     * @return \Getnet\SubSellerMagento\Model\Seller\SubSeller
38
     */
39
    public function create(array $arguments = [])
40
    {
41
        return $this->_objectManager->create(\Getnet\SubSellerMagento\Model\Seller\SubSeller::class, $arguments);
42
    }
43
}
44