public function supportsNormalization($data, $format = null) { return is_object($data) && ($data instanceof Certificate || $data instanceof Key); }