Completed
Push — 23 ( 2cbb94...e876bd )
by Harald
11:26 queued 05:21
created

PaginatedResult   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getTotalItems() 0 4 1
A getPageSize() 0 4 1
A getCurrentPage() 0 4 1
1
<?php
2
namespace Braintree;
3
4
class PaginatedResult
5
{
6
    private $_totalItems;
7
    private $_pageSize;
8
    private $_currentPage;
9
10
    public function __construct($totalItems, $pageSize, $currentPage)
11
    {
12
        $this->_totalItems = $totalItems;
13
        $this->_pageSize = $pageSize;
14
        $this->_currentPage = $currentPage;
15
    }
16
17
    public function getTotalItems()
18
    {
19
        return $this->_totalItems;
20
    }
21
22
    public function getPageSize()
23
    {
24
        return $this->_pageSize;
25
    }
26
27
    public function getCurrentPage()
28
    {
29
        return $this->_currentPage;
30
    }
31
}
32
class_alias('Braintree\PaginatedResult', 'Braintree_PaginatedResult');
33