/** * Creates the update event with the provided form data * * @param array $formData * @return BrandUpdateEvent */ protected function getUpdateEvent($formData) { $brandUpdateEvent = new BrandUpdateEvent($formData['id']); $brandUpdateEvent->setLogoImageId($formData['logo_image_id'])->setVisible($formData['visible'])->setLocale($formData['locale'])->setTitle($formData['title'])->setChapo($formData['chapo'])->setDescription($formData['description'])->setPostscriptum($formData['postscriptum']); return $brandUpdateEvent; }