| 1 | <?php |
||
| 11 | class Watchdog { |
||
| 12 | /** |
||
| 13 | * @var GlobalContainer $gc |
||
| 14 | */ |
||
| 15 | protected $gc; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \classConfig $config |
||
| 19 | */ |
||
| 20 | protected $config; |
||
| 21 | |||
| 22 | public function __construct(GlobalContainer $gc) { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $configName - config record name |
||
| 29 | * @param int $timeDiff - interval from SN_TIME_NOW in seconds |
||
| 30 | * @param callable $callable - function to call when condition is met |
||
| 31 | * @param int $configType - type of config record - unixtime or Sql timestamp |
||
| 32 | * @param bool $forceLoad - should config value be read from DB |
||
| 33 | */ |
||
| 34 | public function checkConfigTimeDiff($configName, $timeDiff, $callable, $configType = WATCHDOG_TIME_UNIX, $forceLoad = false) { |
||
| 43 | |||
| 44 | } |
||
| 45 |
Since your code implements the magic setter
_set, this function will be called for any write access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.