public function getDefaultValue()
    {
        if ($this->isDefaultValueAvailable()) {
            $prettyPrinter = new PrettyPrinter\Standard;
            return $prettyPrinter->prettyPrintExpr($this->node->default);
        }
        throw new ModelException(
            sprintf(
                'Parameter #%d [$%s] is not optional.',
                $this->getPosition(),
                $this->getName()
            )
        );
    }
public function getDefaultValue()
    {
        if ($this->isDefaultValueAvailable()) {
            $prettyPrinter = new PrettyPrinter\Standard;
            return $prettyPrinter->prettyPrintExpr($this->node->default);
        }
        throw new ModelException(
            sprintf(
                'Parameter #%d [$%s] is not optional.',
                $this->getPosition(),
                $this->getName()
            )
        );
    }
public function getDefaultValue ( ) { if ( $ this -> isDefaultValueAvailable ( ) ) { $ prettyPrinter = new PrettyPrinter \ Standard ; return $ prettyPrinter -> prettyPrintExpr ( $ this -> node -> default ) ; } throw new ModelException ( sprintf ( 'Parameter #%d [$%s] is not optional.' , $ this -> getPosition ( ) , $ this -> getName ( ) ) ) ; }
Gets the default value of the parameter for a user-defined function or method.
If the parameter is not optional a ModelException will be thrown.

@return mixed
@throws ModelException if the parameter is not optional
Gets the default value of the parameter for a user - defined function or method . If the parameter is not optional a ModelException will be thrown .