We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 99 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class Page |
||
| 24 | { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The identifier of the page |
||
| 28 | * |
||
| 29 | * @var int |
||
| 30 | * @access private |
||
| 31 | */ |
||
| 32 | private $id; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * The name of the page |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | * @access private |
||
| 39 | */ |
||
| 40 | private $name; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * The width of found page |
||
| 44 | * |
||
| 45 | * @var int |
||
| 46 | * @access private |
||
| 47 | */ |
||
| 48 | private $width; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * The height of found page |
||
| 52 | * |
||
| 53 | * @var int |
||
| 54 | * @access private |
||
| 55 | */ |
||
| 56 | private $height; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * The constructor for region. |
||
| 60 | * |
||
| 61 | * @access public |
||
| 62 | * |
||
| 63 | * @param int $id: Id of found page properties |
||
| 64 | * @param array $page: Array of found page properties |
||
| 65 | * |
||
| 66 | * @return void |
||
| 67 | */ |
||
| 68 | public function __construct($id, $page) |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Get the page's identifier. |
||
| 78 | * |
||
| 79 | * @access public |
||
| 80 | * |
||
| 81 | * @return int The page's identifier |
||
| 82 | */ |
||
| 83 | public function getId() |
||
| 84 | { |
||
| 85 | return $this->id; |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Get the page's name. |
||
| 90 | * |
||
| 91 | * @access public |
||
| 92 | * |
||
| 93 | * @return string The page's name |
||
| 94 | */ |
||
| 95 | public function getName() |
||
| 96 | { |
||
| 97 | return $this->name; |
||
| 98 | } |
||
| 99 | |||
| 100 | /** |
||
| 101 | * Get the page's width. |
||
| 102 | * |
||
| 103 | * @access public |
||
| 104 | * |
||
| 105 | * @return int The page's width |
||
| 106 | */ |
||
| 107 | public function getWidth() |
||
| 108 | { |
||
| 109 | return $this->width; |
||
| 110 | } |
||
| 111 | |||
| 112 | /** |
||
| 113 | * Get the page's height. |
||
| 114 | * |
||
| 115 | * @access public |
||
| 116 | * |
||
| 117 | * @return int The page's height |
||
| 118 | */ |
||
| 119 | public function getHeight() |
||
| 122 | } |
||
| 123 | } |
||
| 124 |