Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class AgentParticipants extends Collection |
||
9 | { |
||
10 | public $metaData; |
||
11 | |||
12 | public function __construct(array $models = []) |
||
20 | } |
||
21 | |||
22 | public function state($state = 'ONLINE') |
||
23 | { |
||
24 | $result = $this->filter(function($value) use ($state) { |
||
25 | return strtolower($value->currentStatus) == strtolower($state); |
||
26 | }); |
||
27 | |||
28 | return $result; |
||
29 | } |
||
30 | |||
31 | public function findById($agentId) |
||
38 | } |
||
39 | } |
||
40 |