1 | <?php |
||
12 | class FakeEntityDocument implements EntityDocument { |
||
13 | |||
14 | /** |
||
15 | * @var EntityId |
||
16 | */ |
||
17 | private $id; |
||
18 | |||
19 | /** |
||
20 | * @param EntityId $id |
||
21 | */ |
||
22 | public function __construct( EntityId $id ) { |
||
25 | |||
26 | /** |
||
27 | * @return EntityId |
||
28 | */ |
||
29 | public function getId() { |
||
32 | |||
33 | /** |
||
34 | * @return string Returns the entity type of the provided EntityId. |
||
35 | */ |
||
36 | public function getType() { |
||
39 | |||
40 | /** |
||
41 | * @param EntityId $id |
||
42 | */ |
||
43 | public function setId( $id ) { |
||
46 | |||
47 | /** |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function isEmpty() { |
||
53 | |||
54 | /** |
||
55 | * @see EntityDocument::equals |
||
56 | * |
||
57 | * @since 3.3 |
||
58 | * |
||
59 | * @param mixed $target |
||
60 | * |
||
61 | * @return bool Always true. |
||
62 | */ |
||
63 | public function equals( $target ) { |
||
66 | |||
67 | /** |
||
68 | * @see EntityDocument::copy |
||
69 | * |
||
70 | * @since 3.3 |
||
71 | * |
||
72 | * @return self |
||
73 | */ |
||
74 | public function copy() { |
||
77 | |||
78 | } |
||
79 |