1 | <?php |
||
15 | class EntityRedirect { |
||
16 | |||
17 | /** |
||
18 | * @var EntityId |
||
19 | */ |
||
20 | private $entityId; |
||
21 | |||
22 | /** |
||
23 | * @var EntityId |
||
24 | */ |
||
25 | private $targetId; |
||
26 | |||
27 | /** |
||
28 | * @param EntityId $entityId |
||
29 | * @param EntityId $targetId |
||
30 | * |
||
31 | * @throws InvalidArgumentException |
||
32 | */ |
||
33 | 2 | public function __construct( EntityId $entityId, EntityId $targetId ) { |
|
43 | |||
44 | /** |
||
45 | * @return EntityId |
||
46 | */ |
||
47 | 1 | public function getEntityId() { |
|
50 | |||
51 | /** |
||
52 | * @return EntityId |
||
53 | */ |
||
54 | 1 | public function getTargetId() { |
|
57 | |||
58 | /** |
||
59 | * @param EntityRedirect $that |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | 9 | public function equals( $that ) { |
|
73 | |||
74 | /** |
||
75 | * @since 4.4 |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function __toString() { |
||
82 | |||
83 | } |
||
84 |