1 | <?php |
||
18 | class BatchFileSubscriber implements SubscriberInterface |
||
19 | { |
||
20 | /** |
||
21 | * Monolog Logger |
||
22 | * |
||
23 | * @var Logger |
||
24 | */ |
||
25 | private $logger; |
||
26 | |||
27 | /** |
||
28 | * Webservice Description. |
||
29 | * |
||
30 | * @var DescriptionInterface |
||
31 | */ |
||
32 | private $description; |
||
33 | |||
34 | /** |
||
35 | * Constructor |
||
36 | * |
||
37 | * @param DescriptionInterface $description |
||
38 | * @param array $options |
||
39 | */ |
||
40 | public function __construct(DescriptionInterface $description, array $options = []) |
||
56 | |||
57 | /** |
||
58 | * Returns the Subscribed Events |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | public function getEvents() |
||
69 | |||
70 | /** |
||
71 | * Event to add Segment.io Specific data to the Event Messages |
||
72 | * |
||
73 | * @param PreparedEvent $event The PreparedEvent |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function onPrepared(PreparedEvent $event) |
||
93 | |||
94 | /** |
||
95 | * Stops propagation of ProcessEvents when using Batching |
||
96 | * |
||
97 | * @param ProcessEvent $event The Process Event |
||
98 | * |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function onProcess(ProcessEvent $event) |
||
114 | |||
115 | /** |
||
116 | * Adds User Actions to the Log |
||
117 | * |
||
118 | * @param array $operation Operation as an associative array |
||
119 | * |
||
120 | * @return boolean |
||
121 | */ |
||
122 | public function enqueue(array $operation) |
||
128 | } |
||
129 |