Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

name of a method cannot be optional #34

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion doc/book/generator/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ class Zend\Code\Generator\ClassGenerator extends Zend\Code\Generator\AbstractGen
public function getProperties()
public function getProperty($propertyName)
public function addMethods(Array $methods)
public function addMethod($method)
public function addMethod(
$name,
Array $parameters = [],
$flags = Zend\Code\Generator\MethodGenerator::FLAG_PUBLIC,
$body = null,
$docBlock = null
)
public function getMethods()
public function getMethod($methodName)
public function hasMethod($methodName)
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/ClassGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ public function addMethods(array $methods)
* @return ClassGenerator
*/
public function addMethod(
$name = null,
$name,
array $parameters = [],
$flags = MethodGenerator::FLAG_PUBLIC,
$body = null,
Expand Down