| 1 | <?php |
||
| 12 | class Smarty_Internal_Method_GetConfigVariable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Valid for all objects |
||
| 16 | * |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | public $objMap = 7; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * gets a config variable value |
||
| 23 | * |
||
| 24 | * @param \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data |
||
| 25 | * @param string $varName the name of the config variable |
||
| 26 | * @param bool $errorEnable |
||
| 27 | * |
||
| 28 | * @return null|string the value of the config variable |
||
| 29 | */ |
||
| 30 | public function getConfigVariable(Smarty_Internal_Data $data, $varName = null, $errorEnable = true) |
||
| 34 | } |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.