Repeating the variable name doesn't do anything. Documentation generators don't need it. It's more stuff to read that doesn't add new information. And it can become outdated. Note there are two types of @var docs. When used inline (and not on a class property) the variable name is needed. Change-Id: If5a520405efacd8cefd90b878c999b842b91ac61
17 lines
485 B
PHP
17 lines
485 B
PHP
<?php
|
|
/**
|
|
* Creates a text input field with a button assigned to the input field.
|
|
*/
|
|
class HTMLTextFieldWithButton extends HTMLTextField {
|
|
/** @var HTMLFormFieldWithButton */
|
|
protected $mClassWithButton = null;
|
|
|
|
public function __construct( $info ) {
|
|
$this->mClassWithButton = new HTMLFormFieldWithButton( $info );
|
|
parent::__construct( $info );
|
|
}
|
|
|
|
public function getInputHTML( $value ) {
|
|
return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
|
|
}
|
|
}
|