Exemplo n.º 1
0
 /**
  * Handler event parse stock
  *
  * @param Events\ParseStock $event Data in event.
  */
 public function packStock(Events\ParseStock $event)
 {
     $data = $event->getData();
     $this->addLength($data['entityType'], $data);
     if ($this->packSize <= $this->len[$data['entityType']]) {
         $this->packData($data['entityType']);
     }
 }
Exemplo n.º 2
0
 /**
  * @param Events\ParseStock $event
  */
 public function parseStock(Events\ParseStock $event)
 {
     $data = $event->getData();
     $this->buffer->set($data['entityType'], $this->json($data));
 }