| 1 | <?php |
||
| 12 | class FakeEntityDocument implements EntityDocument { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var EntityId |
||
| 16 | */ |
||
| 17 | private $id; |
||
| 18 | |||
| 19 | public function __construct( EntityId $id ) { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return EntityId |
||
| 25 | */ |
||
| 26 | public function getId() { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string Returns the entity type of the provided EntityId. |
||
| 32 | */ |
||
| 33 | public function getType() { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param EntityId $id |
||
| 39 | */ |
||
| 40 | public function setId( $id ) { |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | public function isEmpty() { |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @see EntityDocument::equals |
||
| 53 | * |
||
| 54 | * @param mixed $target |
||
| 55 | * |
||
| 56 | * @return bool Always true. |
||
| 57 | */ |
||
| 58 | public function equals( $target ) { |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @see EntityDocument::copy |
||
| 64 | * |
||
| 65 | * @return self |
||
| 66 | */ |
||
| 67 | public function copy() { |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @see EntityDocument::clear |
||
| 73 | */ |
||
| 74 | public function clear() { |
||
| 76 | |||
| 77 | } |
||
| 78 |