forked from alekseykuleshov/rocket-chat
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCollection.php
More file actions
41 lines (35 loc) · 688 Bytes
/
Collection.php
File metadata and controls
41 lines (35 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace ATDev\RocketChat\Users;
/**
* User collection class
*/
class Collection extends \ATDev\RocketChat\Common\Collection
{
/** @var bool indicates it's a partial result */
private $full;
public function add($element)
{
if (!($element instanceof User)) {
return false;
}
return parent::add($element);
}
/**
* @return bool
*/
public function isFull()
{
return $this->full;
}
/**
* @param bool $full
* @return $this
*/
public function setFull($full)
{
if (is_bool($full)) {
$this->full = $full;
}
return $this;
}
}