Last change
on this file was 63, checked in by chronos, 3 years ago |
- Modified: Used explicit types where possible for better error reporting.
- Modified: Updated Common packaged to newer version.
- Modified: Simplified pages title.
- Added: Simple keyword based spam filter for meet items.
|
File size:
272 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | class GenericList
|
---|
4 | {
|
---|
5 | public array $Items = array();
|
---|
6 |
|
---|
7 | function Add($Item): void
|
---|
8 | {
|
---|
9 | $this->Items[] = $Item;
|
---|
10 | }
|
---|
11 |
|
---|
12 | function RemoveAt(int $Index): void
|
---|
13 | {
|
---|
14 | unset($this->Items[$Index]);
|
---|
15 | }
|
---|
16 |
|
---|
17 | function Count(): int
|
---|
18 | {
|
---|
19 | return count($this->Items);
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.