input/Value.php
public function setDefault($default) : Value
    {
        if (isset($default) && !$this->mode->is(Value::OPTIONAL)) {
            throw new \InvalidArgumentException('Cannot set a default value for non-optional values.');
        }

        $this->default = $default;

        return $this;
    }
public function setDefault($default) : Value
    {
        if (isset($default) && !$this->mode->is(Value::OPTIONAL)) {
            throw new \InvalidArgumentException('Cannot set a default value for non-optional values.');
        }

        $this->default = $default;

        return $this;
    }
public function setDefault ( $ default ) : Value { if ( isset ( $ default ) && ! $ this -> mode -> is ( Value :: OPTIONAL ) ) { throw new \ InvalidArgumentException ( 'Cannot set a default value for non-optional values.' ) ; } $ this -> default = $ default ; return $ this ; }
Sets the default value for the underlying Parameter.

@param   mixed               $default    The default value.
@return  $this
@throws  \InvalidArgumentException       When an invalid default value is given.
Sets the default value for the underlying Parameter .