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