G
G
galithr2016-11-01 17:13:00
Yii
galithr, 2016-11-01 17:13:00

How to include object properties in documentation?

there is a class

/**
 * Это описание класса
 *
 * @property boolean $flag Описание свойства класса
 */
class MyClass extends \yii\base\Object{

 private $_flag;

 public function setData($value){
  $this->_flag = $value;
 }

 public function getData(){
  return $this->_flag;
 }
}

I'm trying to generate a dock for it via apidoc using the vendor/bin/apidoc api source/directory ./output command The dock is
generated but the properties declared before the class via @property are not displayed in the documentation. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question