public function __construct(string $entityClass, array $items) { $this->items = $items; $this->entityClass = $entityClass; }