| 1 | <?php namespace Understand\UnderstandLaravel5; |
||
| 6 | class JsProvider |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var Application |
||
| 10 | */ |
||
| 11 | protected $app; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return void |
||
|
|
|||
| 15 | */ |
||
| 16 | public function __construct(Application $app) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the Url of the JS bundle |
||
| 23 | * |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getJsBundleUrl() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the JS configuration |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function getJsConfig() |
||
| 49 | } |
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.