1 | <?php |
||
11 | abstract class AbstractPlugin implements PluginInterface |
||
12 | { |
||
13 | protected $slackbot; |
||
14 | |||
15 | /** |
||
16 | * Dependencies. |
||
17 | */ |
||
18 | protected $dictionary; |
||
19 | |||
20 | /** |
||
21 | * AbstractPlugin constructor. |
||
22 | * |
||
23 | * @param Slackbot $slackbot |
||
24 | */ |
||
25 | 10 | public function __construct(Slackbot $slackbot) |
|
29 | |||
30 | /** |
||
31 | * Return Botonomous. |
||
32 | * |
||
33 | * @return Slackbot |
||
34 | */ |
||
35 | 5 | public function getSlackbot(): Slackbot |
|
39 | |||
40 | /** |
||
41 | * Set Botonomous. |
||
42 | * |
||
43 | * @param Slackbot $slackbot |
||
44 | */ |
||
45 | 10 | public function setSlackbot($slackbot) |
|
49 | |||
50 | /** |
||
51 | * @return Dictionary |
||
52 | */ |
||
53 | 2 | public function getDictionary(): Dictionary |
|
61 | |||
62 | /** |
||
63 | * @param Dictionary $dictionary |
||
64 | */ |
||
65 | 2 | public function setDictionary(Dictionary $dictionary) |
|
69 | } |
||
70 |