DateTimeImmutableRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
/**
3
 * API for Billing
4
 *
5
 * @link      https://github.com/hiqdev/billing-hiapi
6
 * @package   billing-hiapi
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\billing\hiapi\vo;
12
13
use DateTimeImmutable;
14
use hiqdev\yii\DataMapper\repositories\BaseRepository;
15
16
class DateTimeImmutableRepository extends BaseRepository
17
{
18
    /**
19
     * @param array $row
20
     * @return DateTimeImmutable
21
     */
22
    public function create($data)
23
    {
24
        return new DateTimeImmutable($data);
25
    }
26
}
27