| 1 | <?php namespace Understand\UnderstandLaravel5; |
||
| 6 | class JsProvider |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * JS bundle version |
||
| 11 | */ |
||
| 12 | const DEFAULT_BUNDLE_VERSION = 'v1'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Application |
||
| 16 | */ |
||
| 17 | protected $app; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return void |
||
|
|
|||
| 21 | */ |
||
| 22 | public function __construct(Application $app) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the Url of the JS bundle |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getJsBundleUrl() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the JS configuration |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getJsConfig() |
||
| 55 | } |
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.