/** * @param AddSegmentsErrors $errors */ private function isAdNumberValid($errors) { $adNumber = $this->segment->getAdNumber(); if (!ValidatorUtility::doesFieldExist($adNumber) || !ValidatorUtility::isInteger($adNumber)) { $errors->markAdNumberMissing(); } }