PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\utils\ObjectSet Class Reference
+ Inheritance diagram for pocketmine\utils\ObjectSet:
+ Collaboration diagram for pocketmine\utils\ObjectSet:

Public Member Functions

 add (object ... $objects)
 
 clear ()
 
 contains (object $object)
 
 getIterator ()
 
 remove (object ... $objects)
 
 toArray ()
 

Detailed Description

@phpstan-template T of object @phpstan-implements \IteratorAggregate<int, T>

Definition at line 33 of file ObjectSet.php.

Member Function Documentation

◆ add()

pocketmine\utils\ObjectSet::add ( object ... $objects)

@phpstan-param T ...$objects

Definition at line 41 of file ObjectSet.php.

◆ clear()

pocketmine\utils\ObjectSet::clear ( )

Definition at line 54 of file ObjectSet.php.

◆ contains()

pocketmine\utils\ObjectSet::contains ( object $object)

Definition at line 58 of file ObjectSet.php.

◆ getIterator()

pocketmine\utils\ObjectSet::getIterator ( )

@phpstan-return \ArrayIterator<int, T>

Definition at line 63 of file ObjectSet.php.

◆ remove()

pocketmine\utils\ObjectSet::remove ( object ... $objects)

@phpstan-param T ...$objects

Definition at line 48 of file ObjectSet.php.

◆ toArray()

pocketmine\utils\ObjectSet::toArray ( )
Returns
object[] @phpstan-return array<int, T>

Definition at line 71 of file ObjectSet.php.


The documentation for this class was generated from the following file: