1 | <?php |
||
27 | class Helper extends \Xmf\Module\Helper |
||
28 | { |
||
29 | public $debug; |
||
30 | |||
31 | /** |
||
32 | * @param bool $debug |
||
33 | */ |
||
34 | public function __construct($debug = false) |
||
40 | |||
41 | /** |
||
42 | * @param bool $debug |
||
43 | * |
||
44 | * @return \XoopsModules\Xnewsletter\Helper |
||
45 | */ |
||
46 | public static function getInstance($debug = false) |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getDirname() |
||
63 | |||
64 | /** |
||
65 | * Get an Object Handler |
||
66 | * |
||
67 | * @param string $name name of handler to load |
||
68 | * |
||
69 | * @return bool|\XoopsObjectHandler|\XoopsPersistableObjectHandler |
||
|
|||
70 | */ |
||
71 | public function getHandler($name) |
||
86 | } |
||
87 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.