for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) Kitodo. Key to digital objects e.V. <[email protected]>
*
* This file is part of the Kitodo and TYPO3 projects.
* @license GNU General Public License version 3 or later.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*/
namespace Kitodo\Dlf\Common\SolrSearchResult;
* Page class for the 'dlf' extension. It keeps page in which search phrase was found.
* @author Beatrycze Volk <[email protected]>
* @package TYPO3
* @subpackage dlf
* @access public
class Page
{
* The identifier of the page
* @var int
* @access private
private $id;
* The name of the page
* @var string
private $name;
* The width of found page
private $width;
* The height of found page
private $height;
* The constructor for region.
* @param int $id: Id of found page properties
* @param array $page: Array of found page properties
* @return void
public function __construct($id, $page)
$this->id = $id;
$this->name = $page['id'];
$this->width = $page['width'];
$this->height = $page['height'];
}
* Get the page's identifier.
* @return int The page's identifier
public function getId()
return $this->id;
* Get the page's name.
* @return string The page's name
public function getName()
return $this->name;
* Get the page's width.
* @return int The page's width
public function getWidth()
return $this->width;
* Get the page's height.
* @return int The page's height
public function getHeight()
return $this->height;