| 1 | <?php |
||
| 7 | class Navbar extends Component |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create a new component instance. |
||
| 11 | * |
||
| 12 | * @return void |
||
|
|
|||
| 13 | */ |
||
| 14 | public function __construct() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get the view / contents that represent the component. |
||
| 21 | * |
||
| 22 | * @return \Illuminate\View\View|string |
||
| 23 | */ |
||
| 24 | public function render() |
||
| 28 | } |
||
| 29 |
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.