for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wikibase\DataModel\Services\Fixtures;
use Wikibase\DataModel\Entity\EntityDocument;
use Wikibase\DataModel\Entity\EntityId;
/**
* @license GPL-2.0+
* @author Jeroen De Dauw < [email protected] >
*/
class FakeEntityDocument implements EntityDocument {
* @var EntityId
private $id;
public function __construct( EntityId $id ) {
$this->id = $id;
}
* @return EntityId
public function getId() {
return $this->id;
* @return string Returns the entity type of the provided EntityId.
public function getType() {
return $this->id->getEntityType();
* @param EntityId $id
public function setId( $id ) {
* @return bool
public function isEmpty() {
return true;
* @see EntityDocument::equals
*
* @param mixed $target
* @return bool Always true.
public function equals( $target ) {
* @see EntityDocument::copy
* @return self
public function copy() {
return new self( $this->id );
* @see EntityDocument::clear
public function clear() {