1 | <?php |
||
15 | class Info_plugin implements \JarvisPHP\Core\JarvisPluginInterface{ |
||
16 | /** |
||
17 | * Priority of plugin |
||
18 | * @var int |
||
19 | */ |
||
20 | var $priority = 1; |
||
|
|||
21 | |||
22 | /** |
||
23 | * the behaviour of plugin |
||
24 | * @param string $command |
||
25 | */ |
||
26 | function answer($command) { |
||
43 | /** |
||
44 | * Get plugin's priority |
||
45 | * @return int |
||
46 | */ |
||
47 | function getPriority() { |
||
50 | |||
51 | /** |
||
52 | * Is it the right plugin for the command? |
||
53 | * @param string $command |
||
54 | * @return boolean |
||
55 | */ |
||
56 | function isLikely($command) { |
||
59 | |||
60 | /** |
||
61 | * Does the plugin need a session? |
||
62 | * @return boolean |
||
63 | */ |
||
64 | function hasSession() { |
||
67 | } |
||
68 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.