Completed
Pull Request — master (#143)
by Alexander
05:04
created

DatabaseSnapshotRecords   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getItems() 0 4 1
1
<?php
2
/**
3
 * Yandex PHP Library
4
 *
5
 * @copyright NIX Solutions Ltd.
6
 * @link      https://github.com/nixsolutions/yandex-php-library
7
 */
8
9
/**
10
 * @namespace
11
 */
12
namespace Yandex\DataSync\Models;
13
14
use Yandex\Common\Model;
15
use Yandex\DataSync\Models\Database\Delta\Records;
16
17
/**
18
 * Class Records
19
 *
20
 * @package  Yandex\DataSync
21
 * @author   Alexander Khaylo <[email protected]>
22
 */
23
class DatabaseSnapshotRecords extends Model
24
{
25
    protected $mappingClasses = [
26
        'items' => 'Yandex\DataSync\Models\Database\Delta\Records',
27
    ];
28
29
    protected $items;
30
31
    /**
32
     * @return Records
33
     */
34 1
    public function getItems()
35
    {
36 1
        return $this->items;
37
    }
38
}
39