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 Revision {
private $id;
private $model;
private $format;
private $text;
private $timeStamp;
* @param string|int $id
* @param string $model
* @param string $format
* @param string $text
* @param string $timeStamp
public function __construct( $id, $model, $format, $text, $timeStamp ) {
$this->id = (int)$id;
$this->model = $model;
$this->format = $format;
$this->text = $text;
$this->timeStamp = $timeStamp;
}
* @return int
public function getId() {
return $this->id;
* @return string
public function getModel() {
return $this->model;
public function getFormat() {
return $this->format;
public function getText() {
return $this->text;
public function getTimeStamp() {
return $this->timeStamp;
* @return bool
public function hasEntityModel() {
return $this->model === 'wikibase-item' || $this->model === 'wikibase-property';