protected function detectParameterType()
    {
        $this->setType(null);

        if ($this->defaultValue !== null) {
            $value = $this->defaultValue->getValue();
            if (is_array($value) === true) {
                $this->setType('array');
            }
        }

        return $this;
    }
protected function detectParameterType()
    {
        $this->setType(null);

        if ($this->defaultValue !== null) {
            $value = $this->defaultValue->getValue();
            if (is_array($value) === true) {
                $this->setType('array');
            }
        }

        return $this;
    }
protected function detectParameterType ( ) { $ this -> setType ( null ) ; if ( $ this -> defaultValue !== null ) { $ value = $ this -> defaultValue -> getValue ( ) ; if ( is_array ( $ value ) === true ) { $ this -> setType ( 'array' ) ; } } return $ this ; }
Get the data type of the parameter from a value.

@return \Wingu\OctopusCore\CodeGenerator\PHP\ParameterGenerator
Get the data type of the parameter from a value .