<?php
namespace App\ImportedOrder; class Itinerary_SSRRecord extends EntityAbstract { public $category; public $code; public $description; public $freeText; protected function validateEntityFields(\App\MessagesCollector $messagesCollector): void { if (!$this->code) { $messagesCollector->addError('The SSR record does not have a correct code attached.'); } } }