Completed
Push — v2 ( 32d34c...e0e9a9 )
by Jean
14s queued 13s
created

ModelService::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Tests;
4
5
use ETNA\Doctrine\Entity\AbstractEntityService;
6
7
class ModelService extends AbstractEntityService
8
{
9
    public function __construct($em, $validator)
10
    {
11
        parent::__construct($em, $validator);
12
    }
13
14
    public function create($datas)
15
    {
16
        $model = new Model();
17
18
        $this->setPropertiesToEntity($datas, ['create'], $model);
19
20
        return $model;
21
    }
22
}
23