$content) { echo $content; } return $var1; }//end checkVariable() /** * * */ $emptyVarDoc = ''; /** * Var type checking (int v.s. integer). * * @var int */ private $_varSimpleTypeCheck; /** * Var type checking (array(int => string) v.s. array(int => string)). * * @var array(int => string) */ private $_varArrayTypeCheck; /** * Boolean @var tag Capitalized * * @var Boolean */ public $CapBoolTag = true; /** * Boolean @var tag Capitalized * * @var BOOLEAN */ public $CapBoolTag2 = true; /** * Double @var tag Capitalized * * @var Double */ public $CapDoubleTag = 1; /** * Double @var tag Capitalized * * @var DOUBLE */ public $CapDoubleTag2 = 1; /** * Real @var tag Capitalized * * @var Real */ public $CapRealTag = 1; /** * Real @var tag Capitalized * * @var REAL */ public $CapRealTag2 = 1; /** * Float @var tag Capitalized * * @var Float */ public $CapFloatTag = 1; /** * Float @var tag Capitalized * * @var FLOAT */ public $CapFloatTag2 = 1; /** * Int @var tag Capitalized * * @var Int */ public $CapIntTag = 1; /** * Int @var tag Capitalized * * @var INT */ public $CapIntTag2 = 1; /** * Integer @var tag Capitalized * * @var Integer */ public $CapIntTag3 = 1; /** * Integer @var tag Capitalized * * @var INTEGER */ public $CapIntTag4 = 1; /** * Array @var tag Capitalized * * @var Array */ public $CapVarTag = []; /** * Array @var tag All Caps * * @var ARRAY */ public $CapVarTag2 = []; /** * Array @var tag Capitalized * * @var Array() */ public $CapVarTag3 = []; /** * Array @var tag All Caps * * @var ARRAY() */ public $CapVarTag4 = []; /** * Var type checking (STRING v.s. string). * * @var STRING */ private $_varCaseTypeCheck; /** * @var integer */ private $_varWithNoShortComment; protected $noComment2 = ''; /** * @var int Var type checking (int v.s. integer) with single-line comment. */ private $_varSimpleTypeCheckSingleLine; }//end class /** * VariableCommentUnitTest2. * * Long description goes here. * */ class VariableCommentUnitTest2 { public $hello; /** Comment starts here. * * @var string * */ private $_varCaseTypeCheck; /** * 这是一条测试评论. * * @var string */ public $foo; }//end class /* * Class comment */ class Foo { protected $bar; /** * Short description of the member variable. * * @var array */ public static array $variableName = array(); } class Foo { /** * Short description of the member variable. * * @var array */ public array $variableName = array(); // Not "/**" style comment. // // @var string private ?Folder\ClassName $_incorrectCommentStyle = null; var int $noComment = 1; } class HasAttributes { /** * Short description of the member variable. * * @var array */ #[ORM\Id]#[ORM\Column("integer")] private $id; /** * Short description of the member variable. * * @var array */ #[ORM\GeneratedValue] #[ORM\Column(ORM\Column::T_INTEGER)] protected $height; } class ReadOnlyProps { /** * Short description of the member variable. * * @var array */ public readonly array $variableName = array(); /** * Short description of the member variable. * * @var */ readonly protected ?int $variableName = 10; private readonly string $variable; }