Completed
Push — master ( 262624...b65281 )
by Łukasz
9s
created

PriceViewFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 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