/** * @param SeriesUpdateScope|string $seriesUpdateScope */ public function ApplyChangesTo($seriesUpdateScope) { $this->seriesUpdateStrategy = SeriesUpdateScope::CreateStrategy($seriesUpdateScope); }
/** * @param string $referenceNumber * @param string $updateScope * @return array|string[] */ private function ValidateParams($referenceNumber, $updateScope) { $errors = array(); if (empty($referenceNumber)) { $errors[] = "Missing or invalid referenceNumber: {$referenceNumber}"; } if (!SeriesUpdateScope::IsValid($updateScope)) { $errors[] = "Missing or invalid updateScope: {$updateScope}"; } return $errors; }