public function isCategoryValid()
 {
     if (ValidatorUtility::isInteger($this->category)) {
         switch ($this->category) {
             case 1:
             case 2:
             case 3:
             case 4:
             case 5:
                 return true;
             default:
                 return false;
         }
     }
     return false;
 }
 /**
  * @param AddSegmentsErrors $errors
  */
 private function isAdNumberValid($errors)
 {
     $adNumber = $this->segment->getAdNumber();
     if (!ValidatorUtility::doesFieldExist($adNumber) || !ValidatorUtility::isInteger($adNumber)) {
         $errors->markAdNumberMissing();
     }
 }