| 1 | <?php |
||
| 5 | class SetManager extends CollectionManager |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Adds an element to the set if it is not already present. |
||
| 9 | * |
||
| 10 | * @param array|Traversable $set |
||
| 11 | * @param array $args |
||
| 12 | */ |
||
| 13 | 4 | public static function add(&$set, $args) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Removes an element from the set. |
||
| 30 | * |
||
| 31 | * @param array|Traversable $set |
||
| 32 | * @param array $args |
||
| 33 | */ |
||
| 34 | 4 | public static function remove(&$set, $args) |
|
| 45 | } |
||
| 46 |