1 | <?php |
||
21 | class Plugin extends AbstractDocument |
||
22 | { |
||
23 | /** |
||
24 | * name |
||
25 | * @var string $name |
||
26 | */ |
||
27 | private $name = null; |
||
28 | |||
29 | /** |
||
30 | * consumer id |
||
31 | * @var string $consumerId |
||
32 | */ |
||
33 | private $consumerId = null; |
||
34 | |||
35 | /** |
||
36 | * config |
||
37 | * @var array $config |
||
38 | */ |
||
39 | private $config = []; |
||
40 | |||
41 | /** |
||
42 | * set name |
||
43 | * |
||
44 | * @param string $name |
||
45 | * |
||
46 | * @return this |
||
47 | */ |
||
48 | public function setName($name) |
||
54 | |||
55 | /** |
||
56 | * get name |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getName() |
||
64 | |||
65 | /** |
||
66 | * set consumer id |
||
67 | * |
||
68 | * @param string $consumerId |
||
69 | * |
||
70 | * @return this |
||
71 | */ |
||
72 | public function setConsumerId($consumerId) |
||
78 | |||
79 | /** |
||
80 | * get consumer id |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getConsumerId() |
||
88 | |||
89 | /** |
||
90 | * add config |
||
91 | * |
||
92 | * @param string $name |
||
93 | * @param mixed $value |
||
94 | * |
||
95 | * @return this |
||
96 | */ |
||
97 | public function addConfig($name, $value) |
||
107 | |||
108 | /** |
||
109 | * remove config |
||
110 | * |
||
111 | * @param string $name |
||
112 | * |
||
113 | * @return this |
||
114 | */ |
||
115 | public function removeConfig($name) |
||
123 | |||
124 | /** |
||
125 | * get config |
||
126 | * |
||
127 | * @param string $name |
||
128 | * |
||
129 | * @return mixed |
||
130 | */ |
||
131 | public function getConfig($name) |
||
135 | |||
136 | /** |
||
137 | * get fields |
||
138 | * |
||
139 | * @return array |
||
140 | */ |
||
141 | protected function getFields() |
||
149 | } |
||
150 |