| 1 | <?php |
||
| 19 | class SimpleChannel extends AbstractModel |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $id; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $name; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var \DateTime |
||
| 33 | */ |
||
| 34 | protected $created; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $creator; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var bool |
||
| 43 | */ |
||
| 44 | protected $isArchived; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var bool |
||
| 48 | */ |
||
| 49 | protected $isGeneral; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string The ID of this channel. |
||
| 53 | */ |
||
| 54 | 1 | public function getId() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @return string The name of the channel, without a leading hash sign. |
||
| 61 | */ |
||
| 62 | 1 | public function getName() |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @return \DateTime The date/time on which this channel was created. |
||
| 69 | */ |
||
| 70 | 1 | public function getCreated() |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return string The user ID of the member that created this channel. |
||
| 77 | */ |
||
| 78 | 1 | public function getCreator() |
|
| 82 | |||
| 83 | /** |
||
| 84 | * @return bool True if this channel has been archived, false otherwise. |
||
| 85 | */ |
||
| 86 | 1 | public function isArchived() |
|
| 90 | |||
| 91 | /** |
||
| 92 | * @return bool Returns true if this channel is the "general" channel that includes all regular team members, |
||
| 93 | * false otherwise. In most teams this is called #general but some teams have renamed it. |
||
| 94 | */ |
||
| 95 | 1 | public function isGeneral() |
|
| 99 | } |
||
| 100 |