1 | <?php |
||
15 | class CheckMail_plugin implements \JarvisPHP\Core\JarvisPluginInterface{ |
||
16 | /** |
||
17 | * Priority of plugin |
||
18 | * @var int |
||
19 | */ |
||
20 | var $priority = 5; |
||
|
|||
21 | |||
22 | /** |
||
23 | * the behaviour of plugin |
||
24 | * @param string $command |
||
25 | */ |
||
26 | function answer($command) { |
||
60 | /** |
||
61 | * Get plugin's priority |
||
62 | * @return int |
||
63 | */ |
||
64 | function getPriority() { |
||
67 | |||
68 | /** |
||
69 | * Is it the right plugin for the command? |
||
70 | * @param string $command |
||
71 | * @return boolean |
||
72 | */ |
||
73 | function isLikely($command) { |
||
76 | |||
77 | /** |
||
78 | * Does the plugin need a session? |
||
79 | * @return boolean |
||
80 | */ |
||
81 | function hasSession() { |
||
84 | } |
||
85 |
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.