SubSellerFactory::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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