PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\permission\BanEntry Class Reference
+ Collaboration diagram for pocketmine\permission\BanEntry:

Public Member Functions

 __construct (string $name)
 
 getCreated ()
 
 getExpires ()
 
 getName ()
 
 getReason ()
 
 getSource ()
 
 getString ()
 
 hasExpired ()
 
 setCreated (\DateTime $date)
 
 setExpires (?\DateTime $date)
 
 setReason (string $reason)
 
 setSource (string $source)
 

Static Public Member Functions

static fromString (string $str)
 

Static Public Attributes

static string $format = "Y-m-d H:i:s O"
 

Detailed Description

Definition at line 35 of file BanEntry.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\permission\BanEntry::__construct ( string $name)

Definition at line 44 of file BanEntry.php.

Member Function Documentation

◆ fromString()

static pocketmine\permission\BanEntry::fromString ( string $str)
static
Exceptions

RuntimeException

Definition at line 145 of file BanEntry.php.

◆ getCreated()

pocketmine\permission\BanEntry::getCreated ( )

Definition at line 54 of file BanEntry.php.

◆ getExpires()

pocketmine\permission\BanEntry::getExpires ( )

Definition at line 74 of file BanEntry.php.

◆ getName()

pocketmine\permission\BanEntry::getName ( )

Definition at line 50 of file BanEntry.php.

◆ getReason()

pocketmine\permission\BanEntry::getReason ( )

Definition at line 95 of file BanEntry.php.

◆ getSource()

pocketmine\permission\BanEntry::getSource ( )

Definition at line 66 of file BanEntry.php.

◆ getString()

pocketmine\permission\BanEntry::getString ( )

Definition at line 103 of file BanEntry.php.

◆ hasExpired()

pocketmine\permission\BanEntry::hasExpired ( )

Definition at line 88 of file BanEntry.php.

◆ setCreated()

pocketmine\permission\BanEntry::setCreated ( \DateTime $date)
Exceptions

InvalidArgumentException

Definition at line 61 of file BanEntry.php.

◆ setExpires()

pocketmine\permission\BanEntry::setExpires ( ?\DateTime $date)
Exceptions

InvalidArgumentException

Definition at line 81 of file BanEntry.php.

◆ setReason()

pocketmine\permission\BanEntry::setReason ( string $reason)

Definition at line 99 of file BanEntry.php.

◆ setSource()

pocketmine\permission\BanEntry::setSource ( string $source)

Definition at line 70 of file BanEntry.php.

Member Data Documentation

◆ $format

string pocketmine\permission\BanEntry::$format = "Y-m-d H:i:s O"
static

Definition at line 36 of file BanEntry.php.


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