Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

phpdoc @method

/** @method string greet(string $who) Hello that guy */
class MyClass
{
  public function __call(string $name, array $args): string
  {
    if( $name === 'greet' )
      return "Hello {$args[0]}!";
    return '';
  }
}
Source by docs.phpdoc.org #
 
PREVIOUS NEXT
Tagged: #phpdoc
ADD COMMENT
Topic
Name
6+8 =