| Total Complexity | 9 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class ChannelMember extends Model |
||
| 10 | { |
||
| 11 | 3 | public function getChannelId(): ?string |
|
| 12 | { |
||
| 13 | 3 | return $this->data['channel_id']; |
|
| 14 | } |
||
| 15 | |||
| 16 | 3 | public function getUserId(): ?string |
|
| 17 | { |
||
| 18 | 3 | return $this->data['user_id']; |
|
| 19 | } |
||
| 20 | |||
| 21 | 3 | public function getRoles(): ?string |
|
| 22 | { |
||
| 23 | 3 | return $this->data['roles']; |
|
| 24 | } |
||
| 25 | |||
| 26 | 3 | public function getLastViewedAt(): ?int |
|
| 27 | { |
||
| 28 | 3 | return $this->data['last_viewed_at']; |
|
| 29 | } |
||
| 30 | |||
| 31 | 3 | public function getMsgCount(): ?int |
|
| 32 | { |
||
| 33 | 3 | return $this->data['msg_count']; |
|
| 34 | } |
||
| 35 | |||
| 36 | 3 | public function getMentionCount(): ?int |
|
| 37 | { |
||
| 38 | 3 | return $this->data['mention_count']; |
|
| 39 | } |
||
| 40 | |||
| 41 | 3 | public function getNotifyProps(): ?array |
|
| 42 | { |
||
| 43 | 3 | return $this->data['notify_props']; |
|
| 44 | } |
||
| 45 | |||
| 46 | 3 | public function getLastUpdateAt(): ?int |
|
| 49 | } |
||
| 50 | |||
| 51 | 3 | protected static function getFields(): array |
|
| 62 | ]; |
||
| 63 | } |
||
| 64 | } |
||
| 65 |