/** * Gets the value of distFiles. * * @param Collection|DistFile[] $distFiles * * @throws \UnexpectedValueException */ public function setDistFiles(Collection $distFiles) { if ($distFiles->getType() !== DistFile::class) { throw new \UnexpectedValueException('The Collection is not of DistFile type'); } $this->distFiles = $distFiles; }