| 1 | <?php |
||
| 16 | class MessageEncoding extends AbstractListenerAggregate implements PluginInterface |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $encoding; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Set encoding of message inside event |
||
| 26 | * |
||
| 27 | * @param ComposerEvent $event |
||
| 28 | */ |
||
| 29 | 1 | public function setMessageEncoding(ComposerEvent $event) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Attach one or more listeners |
||
| 36 | * |
||
| 37 | * Implementors may add an optional $priority argument; the EventManager |
||
| 38 | * implementation will pass this to the aggregate. |
||
| 39 | * |
||
| 40 | * @param EventManagerInterface $events |
||
| 41 | * |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | public function attach(EventManagerInterface $events, $priority = 1) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $encoding |
||
| 51 | * @return self |
||
| 52 | */ |
||
| 53 | 2 | public function setEncoding($encoding) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | 2 | public function getEncoding() |
|
| 67 | } |
||
| 68 |