| 1 | <?php |
||
| 15 | final class PjaxHelper |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var static |
||
| 19 | */ |
||
| 20 | private static $instance; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Checks whether the request is pjax. |
||
| 24 | * |
||
| 25 | * @param Request $request |
||
| 26 | * |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | public function isPjaxRequest(Request $request) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get container. |
||
| 36 | * |
||
| 37 | * @param Request $request |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getContainer(Request $request) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Creates the instance. |
||
| 48 | * |
||
| 49 | * @return PjaxHelper |
||
| 50 | */ |
||
| 51 | public static function instance() |
||
| 59 | } |
||
| 60 |
Late static binding only has effect in subclasses. A
finalclass cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::withself::.To learn more about late static binding, please refer to the PHP core documentation.