| Total Complexity | 3 | 
| Total Lines | 40 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 8 | class JQueryPlugin extends ResponsePlugin | ||
| 9 | { | ||
| 10 | /** | ||
| 11 | * @const The plugin name | ||
| 12 | */ | ||
| 13 | const NAME = 'jquery'; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * @inheritDoc | ||
| 17 | */ | ||
| 18 | public function getName(): string | ||
| 21 | } | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @inheritDoc | ||
| 25 | */ | ||
| 26 | public function getHash(): string | ||
| 27 |     { | ||
| 28 | // Use the version number as hash | ||
| 29 | return '4.0.0'; | ||
| 30 | } | ||
| 31 | |||
| 32 | /** | ||
| 33 | * Create a JQueryPlugin Selector, and link it to the current response. | ||
| 34 | * | ||
| 35 | * Since this element is linked to a response, its code will be automatically sent to the client. | ||
| 36 | * The returned object can be used to call jQuery functions on the selected elements. | ||
| 37 | * | ||
| 38 | * @param string $sPath The jQuery selector path | ||
| 39 | * @param mixed $xContext A context associated to the selector | ||
| 40 | * | ||
| 41 | * @return Selector | ||
| 42 | */ | ||
| 43 | public function selector(string $sPath = '', $xContext = null): Selector | ||
| 48 | } | ||
| 49 | } | ||
| 50 |