1 | <?php |
||
19 | final class SubStatement extends Object |
||
20 | { |
||
21 | /** |
||
22 | * @var string The unique identifier |
||
23 | */ |
||
24 | private $id; |
||
25 | |||
26 | /** |
||
27 | * @var Verb $verb The {@link Verb} |
||
28 | */ |
||
29 | private $verb; |
||
30 | |||
31 | /** |
||
32 | * @var Actor The {@link Actor} |
||
33 | */ |
||
34 | private $actor; |
||
35 | |||
36 | /** |
||
37 | * @var Object The {@link Object} |
||
38 | */ |
||
39 | private $object; |
||
40 | |||
41 | /** |
||
42 | * @var Result The {@link Activity} {@link Result} |
||
43 | */ |
||
44 | private $result; |
||
45 | |||
46 | /** |
||
47 | * @var Context The {@link Statement} {@link Context} |
||
48 | */ |
||
49 | private $context; |
||
50 | |||
51 | public function __construct($id, Actor $actor, Verb $verb, Object $object, Result $result = null, Context $context = null) |
||
60 | |||
61 | /** |
||
62 | * Returns the Statement's unique identifier. |
||
63 | * |
||
64 | * @return string The identifier |
||
65 | */ |
||
66 | public function getId() |
||
70 | |||
71 | /** |
||
72 | * Returns the Statement's {@link Verb}. |
||
73 | * |
||
74 | * @return Verb The Verb |
||
75 | */ |
||
76 | public function getVerb() |
||
80 | |||
81 | /** |
||
82 | * Returns the Statement's {@link Actor}. |
||
83 | * |
||
84 | * @return Actor The Actor |
||
85 | */ |
||
86 | public function getActor() |
||
90 | |||
91 | /** |
||
92 | * Returns the Statement's {@link Object}. |
||
93 | * |
||
94 | * @return \Xabbuh\XApi\Model\Object The Object |
||
95 | */ |
||
96 | public function getObject() |
||
100 | |||
101 | /** |
||
102 | * Returns the {@link Activity} {@link Result}. |
||
103 | * |
||
104 | * @return Result The Result |
||
105 | */ |
||
106 | public function getResult() |
||
110 | |||
111 | /** |
||
112 | * Returns the {@link Statement} {@link Context}. |
||
113 | * |
||
114 | * @return Context The Context |
||
115 | */ |
||
116 | public function getContext() |
||
120 | |||
121 | /** |
||
122 | * Tests whether or not this Statement is a void Statement (i.e. it voids |
||
123 | * another Statement). |
||
124 | * |
||
125 | * @return bool True if the Statement voids another Statement, false otherwise |
||
126 | */ |
||
127 | public function isVoidStatement() |
||
131 | |||
132 | /** |
||
133 | * Returns a {@link StatementReference} for the Statement. |
||
134 | * |
||
135 | * @return StatementReference The reference |
||
136 | */ |
||
137 | public function getStatementReference() |
||
143 | |||
144 | /** |
||
145 | * Returns a Statement that voids the current Statement. |
||
146 | * |
||
147 | * @param Actor $actor The Actor voiding this Statement |
||
148 | * |
||
149 | * @return Statement The voiding Statement |
||
150 | */ |
||
151 | public function getVoidStatement(Actor $actor) |
||
160 | |||
161 | /** |
||
162 | * {@inheritdoc} |
||
163 | */ |
||
164 | public function equals(Object $statement) |
||
210 | } |
||
211 |