public function setDefaultValueConstantName($name)
    {
        if (is_string($name) !== true || strlen($name) === 0 || preg_match('/\s/', $name) > 0) {
            throw new InvalidArgumentException('Constant name is not valid.');
        }

        $this->defaultValueConstantName = $name;

        return $this;
    }
public function setDefaultValueConstantName($name)
    {
        if (is_string($name) !== true || strlen($name) === 0 || preg_match('/\s/', $name) > 0) {
            throw new InvalidArgumentException('Constant name is not valid.');
        }

        $this->defaultValueConstantName = $name;

        return $this;
    }
public function setDefaultValueConstantName ( $ name ) { if ( is_string ( $ name ) !== true || strlen ( $ name ) === 0 || preg_match ( '/\s/' , $ name ) > 0 ) { throw new InvalidArgumentException ( 'Constant name is not valid.' ) ; } $ this -> defaultValueConstantName = $ name ; return $ this ; }
Set the name of the constant of the default value.

@param string $name The name of the constant.
@return \Wingu\OctopusCore\CodeGenerator\PHP\ParameterGenerator
@throws \Wingu\OctopusCore\CodeGenerator\Exceptions\InvalidArgumentException If the name is not valid.
Set the name of the constant of the default value .