yii\mongodb\file\Cursor::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Collection $collection, MongoDB\Driver\Cursor $cursor )
$collection Collection
$cursor MongoDB\Driver\Cursor
    public function __construct($collection, $cursor)
    {
        $this->collection = $collection;
        parent::__construct($cursor);
    }