Completed
Pull Request — master (#77)
by Łukasz
02:27
created

PriceViewFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
1
<?php
2
3
namespace Sylius\ShopApiPlugin\Factory;
4
5
use Sylius\ShopApiPlugin\View\PriceView;
6
7
final class PriceViewFactory implements PriceViewFactoryInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function create($price)
13
    {
14
        $priceView = new PriceView();
15
        $priceView->current = $price;
16
17
        return $priceView;
18
    }
19
}
20