public function __construct(BaseCollection $collection) { $this->collection = $collection; $this->schema = $collection->getSchema(); }