Inheritance: extends RecordCollection
コード例 #1
0
 public function test()
 {
     $records = new ProviderRecords(\Mockery::mock(\Iterator::class), $resource = \Mockery::mock(ProviderResource::class));
     self::assertSame($resource, $records->getResource());
 }
コード例 #2
0
 /**
  * @param \Iterator $providerRecords
  * @param int $count
  * @param ProviderResource $resource
  */
 public function __construct(\Iterator $providerRecords, $count, ProviderResource $resource)
 {
     parent::__construct($providerRecords, $resource);
     $this->setCount($count);
 }