/** * Apply annotation to field * * @param Field $field * @param ColumnAnnotation $annotation */ protected function applyAnnotation(Field $field, ColumnAnnotation $annotation) { $field->setTitle($annotation->title); $field->setType($annotation->type); $field->setWidth($annotation->width); $field->setProperty($annotation->property); $field->setOrderable($annotation->orderable); $field->setOrderBy($annotation->orderBy); $field->setSearchable($annotation->searchable); $field->setSearchBy($annotation->searchBy); $field->setGloballySearchable($annotation->globalSearch); $field->setPriority($annotation->priority); }