<?php
 namespace App\OfferProfileRules; class Criterion_FareBasis extends CriterionAbstract { public function checkFields(\App\OfferProfileRules\Fields $fields) { return $this->checkField( $fields->fareBasis ); } public function checkAssignedValues(\App\MessagesCollector $msgs) { foreach($this->values as $elem) { if (!$elem) { $msgs->addWarning("You cannot set an empty fare basis code."); } } } protected function createDescription_getEntityName($code) { return $code; } } 