Phpcraft
Public Member Functions | List of all members
Phpcraft\Command\StringProvider Class Reference
Inheritance diagram for Phpcraft\Command\StringProvider:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\Command\StringProvider:
Collaboration graph
[legend]

Public Member Functions

 __construct (CommandSender &$sender, string $arg)
 
 getValue ()
 
- Public Member Functions inherited from Phpcraft\Command\ArgumentProvider
 acceptsMore ()
 
 isFinished ()
 
 acceptNext (string $arg)
 

Additional Inherited Members

- Static Public Member Functions inherited from Phpcraft\Command\ArgumentProvider
static noop ()
 
static write (Connection $con)
 
static read (Connection $con)
 
- Protected Attributes inherited from Phpcraft\Command\ArgumentProvider
 $value
 

Detailed Description

Provides a SingleWordStringArgument as PHP's native string to commands.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Command\StringProvider::__construct ( CommandSender $sender,
string  $arg 
)

Reimplemented from Phpcraft\Command\ArgumentProvider.

Member Function Documentation

◆ getValue()

Phpcraft\Command\StringProvider::getValue ( )
Returns
string

Reimplemented from Phpcraft\Command\ArgumentProvider.