1 | <?php |
||
2 | /** |
||
3 | * Autocomplete module for Craft CMS |
||
4 | * |
||
5 | * Provides Twig template IDE autocomplete of Craft CMS & plugin variables |
||
6 | * |
||
7 | * @link https://nystudio107.com |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
8 | * @link https://putyourlightson.com |
||
9 | * @copyright Copyright (c) nystudio107 |
||
0 ignored issues
–
show
|
|||
10 | * @copyright Copyright (c) PutYourLightsOn |
||
0 ignored issues
–
show
|
|||
11 | */ |
||
0 ignored issues
–
show
|
|||
12 | |||
13 | namespace nystudio107\autocomplete\base; |
||
14 | |||
15 | /** |
||
0 ignored issues
–
show
|
|||
16 | * @author nystudio107 |
||
0 ignored issues
–
show
Content of the @author tag must be in the form "Display Name <[email protected]>"
![]() |
|||
17 | * @package autocomplete |
||
0 ignored issues
–
show
|
|||
18 | * @since 1.0.0 |
||
0 ignored issues
–
show
|
|||
19 | */ |
||
0 ignored issues
–
show
|
|||
20 | interface GeneratorInterface |
||
21 | { |
||
22 | // Constants |
||
23 | // ========================================================================= |
||
24 | |||
25 | public const TEMPLATE_EXTENSION = '.php'; |
||
26 | public const STUBS_EXTENSION = '.php.stub'; |
||
27 | public const STUBS_DIR = DIRECTORY_SEPARATOR . 'stubs'; |
||
28 | |||
29 | // Public Static Methods |
||
30 | // ========================================================================= |
||
31 | |||
32 | /** |
||
33 | * Return the name of the generator |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public static function getGeneratorName(): string; |
||
38 | |||
39 | /** |
||
40 | * Return a file system path to the generator stubs directory |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public static function getGeneratorStubsPath(): string; |
||
45 | |||
46 | /** |
||
47 | * Generate the autocomplete class if it doesn't exist already |
||
48 | */ |
||
0 ignored issues
–
show
|
|||
49 | public static function generate(); |
||
50 | |||
51 | /** |
||
52 | * Regenerate the autocomplete classes from scratch |
||
53 | */ |
||
0 ignored issues
–
show
|
|||
54 | public static function regenerate(); |
||
55 | |||
56 | /** |
||
57 | * Delete the autocomplete classes |
||
58 | */ |
||
0 ignored issues
–
show
|
|||
59 | public static function delete(); |
||
60 | } |
||
61 |