1 | <?php |
||
16 | class InformationOn_plugin implements \JarvisPHP\Core\JarvisPluginInterface{ |
||
17 | /** |
||
18 | * Priority of plugin |
||
19 | * @var int |
||
20 | */ |
||
21 | var $priority = 10; |
||
|
|||
22 | |||
23 | /** |
||
24 | * the behaviour of plugin |
||
25 | * @param string $command |
||
26 | */ |
||
27 | function answer($command) { |
||
48 | |||
49 | /** |
||
50 | * Get plugin's priority |
||
51 | * @return int |
||
52 | */ |
||
53 | function getPriority() { |
||
56 | |||
57 | /** |
||
58 | * Is it the right plugin for the command? |
||
59 | * @param string $command |
||
60 | * @return boolean |
||
61 | */ |
||
62 | function isLikely($command) { |
||
65 | |||
66 | /** |
||
67 | * Does the plugin need a session? |
||
68 | * @return boolean |
||
69 | */ |
||
70 | function hasSession() { |
||
73 | } |
||
74 |
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.