\Pop\Console\InputAbstractInput

Console abstract input class

Summary

Methods
Properties
Constants
setValueMode()
setValueOptional()
setValueRequired()
setValueIsArray()
setValue()
acceptsValue()
isValueOptional()
isValueRequired()
isValueArray()
getValue()
No public properties found
No constants found
No protected methods found
$valueOptional
$valueRequired
$valueIsArray
$value
N/A
No private methods found
No private properties found
N/A

Properties

$valueOptional

$valueOptional : boolean

Input value optional

Type

boolean

$valueRequired

$valueRequired : boolean

Input value required

Type

boolean

$valueIsArray

$valueIsArray : boolean

Input value is array

Type

boolean

$value

$value : mixed

Input value

Type

mixed

Methods

setValueMode()

setValueMode(string  $valueMode) : \Pop\Console\Input\AbstractInput

Set if the input value is required

Parameters

string $valueMode

Returns

\Pop\Console\Input\AbstractInput

setValueOptional()

setValueOptional(boolean  $optional) : \Pop\Console\Input\AbstractInput

Set if the input value is required

Parameters

boolean $optional

Returns

\Pop\Console\Input\AbstractInput

setValueRequired()

setValueRequired(boolean  $required) : \Pop\Console\Input\AbstractInput

Set if the input value is required

Parameters

boolean $required

Returns

\Pop\Console\Input\AbstractInput

setValueIsArray()

setValueIsArray(boolean  $isArray) : \Pop\Console\Input\AbstractInput

Set if the input value is an array

Parameters

boolean $isArray

Returns

\Pop\Console\Input\AbstractInput

acceptsValue()

acceptsValue() : boolean

Determine whether the input accepts a value

Returns

boolean

isValueOptional()

isValueOptional() : boolean

Determine whether the input value is optional

Returns

boolean

isValueRequired()

isValueRequired() : boolean

Determine whether the input value is required

Returns

boolean

isValueArray()

isValueArray() : boolean

Determine whether the input value is required

Returns

boolean

getValue()

getValue() : mixed

Get the input value

Returns

mixed