Changeset View
Changeset View
Standalone View
Standalone View
src/conduit/ConduitSearchFuture.php
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | private function newFuture() { | ||||
if ($this->attachments) { | if ($this->attachments) { | ||||
$parameters['attachments'] = $this->attachments; | $parameters['attachments'] = $this->attachments; | ||||
} | } | ||||
if ($this->cursor !== null) { | if ($this->cursor !== null) { | ||||
$parameters['after'] = (string)$this->cursor; | $parameters['after'] = (string)$this->cursor; | ||||
} | } | ||||
$conduit_call = $engine->newCall($method, $parameters); | $conduit_future = $engine->newFuture($method, $parameters); | ||||
$conduit_future = $engine->newFuture($conduit_call); | |||||
return $conduit_future; | return $conduit_future; | ||||
} | } | ||||
private function readResults(array $data) { | private function readResults(array $data) { | ||||
return idx($data, 'data'); | return idx($data, 'data'); | ||||
} | } | ||||
} | } |