Ejemplo n.º 1
0
 public function testProperty()
 {
     $getPropertyFoo = fn\property('foo');
     $getPropertyBar = fn\property('bar');
     $obj = (object) ['foo' => 'bar', 'bar' => 'foo'];
     $this->assertSame($obj->foo, $getPropertyFoo($obj));
     $this->assertSame($obj->bar, $getPropertyBar($obj));
 }
 private function revisionFor(Contract $streamContract, Identifier $streamId)
 {
     $pluckStreamRevision = __\property('streamRevision');
     return $this->maximum(_\map($pluckStreamRevision, _\filter($this->belongsToStream($streamContract, $streamId), $this->records)));
 }