| 1 | <?php |
||
| 13 | class ConversationAbandonEvent extends Event |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Conversation |
||
| 17 | */ |
||
| 18 | protected $conversation; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \Player|\Team |
||
| 22 | */ |
||
| 23 | protected $member; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new event |
||
| 27 | * |
||
| 28 | * @param \Conversation $conversation The conversation that the player left |
||
| 29 | * @param \Player|\Team $member The member who abandoned the conversation |
||
| 30 | */ |
||
| 31 | public function __construct(\Conversation $conversation, \Model $member) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the conversation that the player abandoned |
||
| 39 | * |
||
| 40 | * @return \Conversation |
||
| 41 | */ |
||
| 42 | public function getConversation() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the member who left the conversation |
||
| 49 | * |
||
| 50 | * @return \Player|\Team |
||
| 51 | */ |
||
| 52 | public function getMember() |
||
| 56 | } |
||
| 57 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..