4.2.6. Create Phpdoc

Create PHPdoc comments for classes, interfaces, traits, methods and functions.

Parameters and return types are collected, along with the name of the structure.

4.2.6.1. Before

<?php

class y {
    function a1(string $error, R $r = null) : int|string
    {

    }
?>

4.2.6.2. After

<?php

/**
 * Name : y
 */
class y {
   /**
    * Name : a1
    *
    * string $error
    * null|R $r
    * @return int|string
    *
    */
    function a1(string $error, R $r = null) : int|string
    {

    }
?>

4.2.6.3. Reverse Cobbler

  • No anchor for Attributes/RemovePhpdoc

4.2.6.4. Specs

Short Name

Attributes/CreatePhpdoc

Exakat version

2.3.0

Available in

Entreprise Edition, Exakat Cloud