/** * Constructor * @param Collection $collection data */ public function __construct(Collection $collection) { $this->collection = $collection; $this->rowClass = $collection->getItemType(); }