Constants

argThreemaId

argThreemaId

argFrom

argFrom

argSecret

argSecret

argPrivateKey

argPrivateKey

argPublicKey

argPublicKey

argPrivateKeyFile

argPrivateKeyFile

argPublicKeyFile

argPublicKeyFile

argNonce

argNonce

argEmail

argEmail

Properties

$subject

$subject : string

Type

string

$arguments

$arguments : array<mixed,string>

Type

array<mixed,string>

$requiredArguments

$requiredArguments : array<mixed,string>

Type

array<mixed,string>

$description

$description : string

Type

string

$optionalArguments

$optionalArguments : array

Type

array

Methods

getRequiredArgumentCount()

getRequiredArgumentCount() : integer

Returns

integer

getAllArgumentsCount()

getAllArgumentsCount() : integer

Returns

integer

getArgument()

getArgument(string  $pos) : null|string

Parameters

string $pos

Throws

\Threema\Core\Exception

Returns

null|string

getArgumentFile()

getArgumentFile(string  $pos) : null|string

return a valid file path

Parameters

string $pos

Throws

\Threema\Core\Exception

Returns

null|string

getArgumentPrivateKey()

getArgumentPrivateKey(string  $pos) : null|string

Parameters

string $pos

Returns

null|string

getArgumentPublicKey()

getArgumentPublicKey(string  $pos) : null|string

Parameters

string $pos

Returns

null|string

getArgumentThreemaId()

getArgumentThreemaId(string  $pos) : null|string

Parameters

string $pos

Returns

null|string

run()

run(array  $arguments) 

Parameters

array $arguments

Throws

\Threema\Core\Exception

help()

help(boolean  $shellColors = true) : string

Parameters

boolean $shellColors

Returns

string

description()

description() : string

Returns

string

subject()

subject() : string

Returns

string

doRun()

doRun() 

readStdIn()

readStdIn() : string

Returns

string

getIndexByPos()

getIndexByPos(string  $pos) : integer

Parameters

string $pos

Throws

\Threema\Core\Exception

Returns

integer

getArgumentStringOrFileContent()

getArgumentStringOrFileContent(string  $pos) : null|string

Parameters

string $pos

Returns

null|string