Skip to content

Commit

Permalink
Merge branch 'feature/#65-fix-ParamTag-documentation-examples' into 4…
Browse files Browse the repository at this point in the history
….1.x

Fixes #65
  • Loading branch information
Ocramius committed Mar 27, 2021
2 parents a5a506c + afc1228 commit 19f64f9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/book/generator/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,14 @@ $foo->setName('Foo')
'shortDescription' => 'Set the bar property',
'longDescription' => null,
'tags' => [
new Tag\ParamTag([
'paramName' => 'bar',
'datatype' => 'string'
]),
new Tag\ParamTag(
'bar',
[
'string',
'array'
],
'parameter description'
),
new Tag\ReturnTag([
'datatype' => 'string',
]),
Expand Down Expand Up @@ -207,8 +211,7 @@ class Foo
/**
* Set the bar property
*
* @param string bar
* @return string
* @param string|array $bar parameter description
*/
public function setBar($bar)
{
Expand Down

0 comments on commit 19f64f9

Please sign in to comment.