예제 #1
0
 /**
  * This method will parse a formal parameter. A formal parameter is at least
  * a variable name, but can also contain a default parameter value.
  *
  * <code>
  * //               --  -------
  * function foo(Bar $x, $y = 42) {}
  * //               --  -------
  * </code>
  *
  * @return PHP_Depend_Code_ASTFormalParameter
  * @since 0.9.6
  */
 private function parseFormalParameter()
 {
     $parameter = $this->builder->buildAstFormalParameter();
     $parameter->addChild($this->parseVariableDeclarator());
     return $parameter;
 }