src/Argument/Argument.php
public function value()
    {
        if ($this->values) {
            return end($this->values);
        }
        $cast_method = 'castTo' . ucwords($this->castTo);
        return $this->{$cast_method}(current($this->defaultValue()));
    }
public function value()
    {
        if ($this->values) {
            return end($this->values);
        }
        $cast_method = 'castTo' . ucwords($this->castTo);
        return $this->{$cast_method}(current($this->defaultValue()));
    }
public function value ( ) { if ( $ this -> values ) { return end ( $ this -> values ) ; } $ cast_method = 'castTo' . ucwords ( $ this -> castTo ) ; return $ this -> { $ cast_method } ( current ( $ this -> defaultValue ( ) ) ) ; }
Retrieve an argument's value.

Argument values are type cast based on the value of $castTo.

@return string|int|float|bool
Retrieve an argument s value .