public static function makeSetterGetterDoc(Entity $entity)
    {
        $properties = $entity->toArray(false);
        $entityName = $entity->calledClassName();

        echo "<pre>\n";

        foreach ($properties as $name => $value) {
            $methodName = ucfirst($name);
            $type       = $entity->typeof($name);

            echo " * @method $entityName set$methodName($type \$value)\n";
            echo " * @method $type get$methodName()\n";
        }
        echo "</pre>\n";
    }
public static function makeSetterGetterDoc(Entity $entity)
    {
        $properties = $entity->toArray(false);
        $entityName = $entity->calledClassName();

        echo "<pre>\n";

        foreach ($properties as $name => $value) {
            $methodName = ucfirst($name);
            $type       = $entity->typeof($name);

            echo " * @method $entityName set$methodName($type \$value)\n";
            echo " * @method $type get$methodName()\n";
        }
        echo "</pre>\n";
    }
public static function makeSetterGetterDoc ( Entity $ entity ) { $ properties = $ entity -> toArray ( false ) ; $ entityName = $ entity -> calledClassName ( ) ; echo "<pre>\n" ; foreach ( $ properties as $ name => $ value ) { $ methodName = ucfirst ( $ name ) ; $ type = $ entity -> typeof ( $ name ) ; echo " * @method $entityName set$methodName($type \$value)\n" ; echo " * @method $type get$methodName()\n" ; } echo "</pre>\n" ; }
Generate the setter and getter method PHPDoc declaration to paste into your entity class.

@param Entity $entity
Generate the setter and getter method PHPDoc declaration to paste into your entity class .