| 1 | <?php |
||
| 13 | class ConversationKickEvent extends Event |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Conversation |
||
| 17 | */ |
||
| 18 | protected $conversation; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \Player|\Team |
||
| 22 | */ |
||
| 23 | protected $kicked; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var \Player |
||
| 27 | */ |
||
| 28 | protected $kicker; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Create a new event |
||
| 32 | * |
||
| 33 | * @param \Conversation $conversation The conversation from which the player was kicked |
||
| 34 | * @param \Player|\Team $kicked The member who was kicked |
||
| 35 | * @param \Player $kicker The player who issued the kick |
||
| 36 | */ |
||
| 37 | public function __construct(\Conversation $conversation, \Model $kicked, \Player $kicker) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get the conversation from which the player was kicked |
||
| 46 | * |
||
| 47 | * @return \Conversation |
||
| 48 | */ |
||
| 49 | public function getConversation() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the member who was kicked |
||
| 56 | * |
||
| 57 | * @return \Player|\Team |
||
| 58 | */ |
||
| 59 | public function getKicked() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Get the member who was kicked |
||
| 66 | * |
||
| 67 | * Alias for ConversationKickEvent::getKicked() |
||
| 68 | * |
||
| 69 | * @return \Player|\Team |
||
| 70 | */ |
||
| 71 | public function getMember() |
||
| 72 | { |
||
| 73 | return $this->kicked; |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Get the player who issued the kick |
||
| 78 | * |
||
| 79 | * @return \Player |
||
| 80 | */ |
||
| 81 | public function getKicker() |
||
| 85 | } |
||
| 86 |
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..