public function add($value) { if (!$this->checkType($value)) { throw new \UnexpectedValueException(sprintf(self::$exceptionErrorMessage, 1, __CLASS__, 'add', $this->getType(), $this->getItemType($value))); } parent::add($value); return true; }
/** * @param DistFile $distFile */ public function addDistFile(DistFile $distFile) { $this->distFiles->add($distFile); }