コード例 #1
0
 /**
  * @param SeriesUpdateScope|string $seriesUpdateScope
  */
 public function ApplyChangesTo($seriesUpdateScope)
 {
     $this->seriesUpdateStrategy = SeriesUpdateScope::CreateStrategy($seriesUpdateScope);
 }
コード例 #2
0
 /**
  * @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;
 }