Constants

VALUE_NONE

VALUE_NONE

Constants for value mode

VALUE_REQUIRED

VALUE_REQUIRED

VALUE_OPTIONAL

VALUE_OPTIONAL

VALUE_IS_ARRAY

VALUE_IS_ARRAY

Methods

setValueOptional()

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

Set if the input value is required

Parameters

boolean $optional

Returns

\Pop\Console\Input\InputInterface

setValueRequired()

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

Set if the input value is required

Parameters

boolean $required

Returns

\Pop\Console\Input\InputInterface

setValueIsArray()

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

Set if the input value is an array

Parameters

boolean $isArray

Returns

\Pop\Console\Input\InputInterface

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