/** * * @param type $data * @return \storm\actions\ValidationProfile */ public static function deserializeProfile($data) { $profile = new ValidationProfile(null); $profile->deserialize($data); return $profile; }
public static function convertValidationProfileToArray(ValidationProfile $profile) { $array = $profile->serialize(); return $array; }
public function serialize() { $response = parent::serialize(); $response['external'] = $this->profile->getIdentifier(); return $response; }
public function addValidationProfile(ValidationProfile $profile) { $this->profiles[$profile->getAction()->getName()] = $profile; }