Completed
Pull Request — 23 (#612)
by Harald
05:38
created

PaginatedResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 3
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
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