Manager::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace GFG\DTOMarketplace\Context;
4
5
class Manager extends \GFG\DTOContext\Manager
6
{
7
    /**
8
     * @param string $contextName
9
     * @param string $dataWrapperName
10
     * @param array $dataWrapperData
11
     * @return mixed
12
     */
13
    public function build(
14
        $contextName,
15
        $dataWrapperName,
16
        array $dataWrapperData = []
17
    ) {
18
        $dataWrapper = new $dataWrapperName($dataWrapperData);
19
        return $this->create($contextName, $dataWrapper);
20
    }
21
}
22