PagingResultDto   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A importDatabase() 0 8 1
1
<?php
2
namespace Ridibooks\Platform\Common\Dto;
3
4
class PagingResultDto
5
{
6
	/**
7
	 * @var array
8
	 */
9
	public $items;
10
11
	/**
12
	 * @var int
13
	 */
14
	public $total_count;
15
16
	public static function importDatabase($items, $total_count)
17
	{
18
		$dto = new self;
19
		$dto->items = $items;
20
		$dto->total_count = $total_count;
21
22
		return $dto;
23
	}
24
}
25