setCommentForUser($this->security->getUser(), $data); return $comment; } public function normalize($object, $format = null, array $context = []): string { return $object->getCommentForUser($this->security->getUser()); } public function supportsDenormalization($data, string $type, string $format = null): bool { return PrivateCommentEmbeddable::class === $type; } public function supportsNormalization($data, string $format = null): bool { return $data instanceof PrivateCommentEmbeddable; } }