コード例 #1
0
 /**
  * Return a list of items from the given ApiCall
  * @param  ApiCall $apiCall [description]
  * @return [type]           [description]
  */
 function listFromApiCall(ApiCall $apiCall)
 {
     $self = $this;
     return iter\map(function ($record) use($self) {
         return $self->byStub($record);
     }, $apiCall);
 }
コード例 #2
0
 private function revisionFor(Contract $streamContract, Identifier $streamId)
 {
     $pluckStreamRevision = __\property('streamRevision');
     return $this->maximum(_\map($pluckStreamRevision, _\filter($this->belongsToStream($streamContract, $streamId), $this->records)));
 }