public function addValidationProfile(ValidationProfile $profile) { $this->profiles[$profile->getAction()->getName()] = $profile; }