Exemplo n.º 1
0
 /**
  * @inheritdoc
  *
  * @param AbstractSearchPayload $payload
  */
 protected function getExpectedPayloadData(PayloadInterface $payload)
 {
     return ['query' => $payload->getQuery(), 'page' => $payload->getPage(), 'count' => $payload->getCount(), 'highlight' => $payload->getHighlight(), 'sort' => $payload->getSort(), 'sort_dir' => $payload->getSortDir()];
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  *
  * @param FilesListPayload $payload
  */
 protected function getExpectedPayloadData(PayloadInterface $payload)
 {
     return ['page' => $payload->getPage(), 'count' => $payload->getCount(), 'types' => $payload->getTypes(), 'user' => $payload->getUserId(), 'ts_from' => $payload->getTimestampFrom()->format('U'), 'ts_to' => $payload->getTimestampTo()->format('U')];
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  *
  * @param StarsListPayload $payload
  */
 protected function getExpectedPayloadData(PayloadInterface $payload)
 {
     return ['count' => $payload->getCount(), 'page' => $payload->getPage(), 'user' => $payload->getUserId()];
 }