Completed
Push — master ( 4896ac...e378d5 )
by Łukasz
24:08
created

BookmarkList::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\Core\REST\Server\Values;
10
11
use eZ\Publish\Core\REST\Common\Value as RestValue;
12
13
class BookmarkList extends RestValue
14
{
15
    /**
16
     * @var int
17
     */
18
    public $totalCount = 0;
19
20
    /**
21
     * @var \eZ\Publish\Core\REST\Server\Values\RestLocation[]
22
     */
23
    public $items = [];
24
25
    /**
26
     * BookmarkList constructor.
27
     *
28
     * @param int $totalCount
29
     * @param \eZ\Publish\Core\REST\Server\Values\RestLocation[] $items
30
     */
31
    public function __construct(int $totalCount, array $items)
32
    {
33
        $this->totalCount = $totalCount;
34
        $this->items = $items;
35
    }
36
}
37