1 | <?php |
||
15 | class ActualOutsideTemperature_plugin implements \JarvisPHP\Core\JarvisPluginInterface { |
||
16 | /** |
||
17 | * Priority of plugin |
||
18 | * @var int |
||
19 | */ |
||
20 | var $priority = 4; |
||
|
|||
21 | |||
22 | var $place = "Rimini, Italy"; |
||
23 | |||
24 | /** |
||
25 | * the behaviour of plugin |
||
26 | * @param string $command |
||
27 | */ |
||
28 | function answer($command) { |
||
46 | |||
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.