*/ private EntityCollection $collection; private int $total; private stdClass $data; /** * @param EntityCollection $collection */ public function __construct(EntityCollection $collection, int $total, stdClass $data) { $this->collection = $collection; $this->total = $total; $this->data = $data; } /** * @return EntityCollection */ public function getCollection(): EntityCollection { return $this->collection; } public function getTotal(): int { return $this->total; } public function getData(): stdClass { return $this->data; } }