requiredProperties as $property) { if (!isset($model->{$property})) { throw new ApplicationException(Lang::get('system::lang.behavior.missing_property', [ 'class' => get_class($model), 'property' => $property, 'behavior' => get_called_class() ])); } } } }