for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Queryr\DumpReader;
/**
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class Page {
private $id;
private $title;
private $namespace;
private $revision;
* @param string|int $id
* @param string $title
* @param string|int $namespace
* @param Revision $revision
public function __construct( $id, $title, $namespace, Revision $revision ) {
$this->id = (int)$id;
$this->title = $title;
$this->namespace = (int)$namespace;
$this->revision = $revision;
}
* @return int
public function getId() {
return $this->id;
* @return string
public function getTitle() {
return $this->title;
public function getNamespace() {
return $this->namespace;
* @return Revision
public function getRevision() {
return $this->revision;