| 1 | <?php |
||
| 33 | class Demo extends Controller |
||
| 34 | { |
||
| 35 | /** |
||
| 36 | * Constructor |
||
| 37 | * |
||
| 38 | * @access public |
||
| 39 | * @return Demo |
||
|
|
|||
| 40 | */ |
||
| 41 | public function __construct() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * bootstrap |
||
| 48 | * |
||
| 49 | * @access public |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | public function bootstrap() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * install method |
||
| 59 | * |
||
| 60 | * @access public |
||
| 61 | * @param string $sPortal |
||
| 62 | * @return void |
||
| 63 | */ |
||
| 64 | public function install($sPortal) |
||
| 68 | } |
||
| 69 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.