0

I'm writing some documentation on my PHP files and I am not sure what type the $description variable should be in this scenario.

My guess is that it would look something like this but I am really unsure.

/**
 * Undocumented variable
 *
 * @method string
 */
public $description;

public function __construct() {
    $this->description = __(
        'Lorem ipsum', 'theme-option');
}
Zelcus
  • 30
  • 6

1 Answers1

1

Here is how I do it :

/**
 * Undocumented variable
 *
 * @var string
 */
public $description;

public function __construct() {
    $this->description = __(
        'Lorem ipsum', 'theme-option');
}
Obzi
  • 2,384
  • 1
  • 9
  • 22