Improve return phpdoc for Normalizer

This commit is contained in:
Vincent Langlet 2020-11-25 12:55:08 +01:00
parent 4c378d467e
commit f2713d6580
7 changed files with 22 additions and 0 deletions

View File

@ -35,6 +35,8 @@ class ArrayDenormalizer implements ContextAwareDenormalizerInterface, Serializer
* {@inheritdoc} * {@inheritdoc}
* *
* @throws NotNormalizableValueException * @throws NotNormalizableValueException
*
* @return array
*/ */
public function denormalize($data, $type, $format = null, array $context = []) public function denormalize($data, $type, $format = null, array $context = [])
{ {

View File

@ -40,6 +40,8 @@ class ConstraintViolationListNormalizer implements NormalizerInterface, Cacheabl
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @return array
*/ */
public function normalize($object, $format = null, array $context = []) public function normalize($object, $format = null, array $context = [])
{ {

View File

@ -61,6 +61,8 @@ class DataUriNormalizer implements NormalizerInterface, DenormalizerInterface, C
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @return string
*/ */
public function normalize($object, $format = null, array $context = []) public function normalize($object, $format = null, array $context = [])
{ {
@ -102,6 +104,8 @@ class DataUriNormalizer implements NormalizerInterface, DenormalizerInterface, C
* *
* @throws InvalidArgumentException * @throws InvalidArgumentException
* @throws NotNormalizableValueException * @throws NotNormalizableValueException
*
* @return \SplFileInfo
*/ */
public function denormalize($data, $type, $format = null, array $context = []) public function denormalize($data, $type, $format = null, array $context = [])
{ {

View File

@ -46,6 +46,8 @@ class DateIntervalNormalizer implements NormalizerInterface, DenormalizerInterfa
* {@inheritdoc} * {@inheritdoc}
* *
* @throws InvalidArgumentException * @throws InvalidArgumentException
*
* @return string
*/ */
public function normalize($object, $format = null, array $context = []) public function normalize($object, $format = null, array $context = [])
{ {
@ -77,6 +79,8 @@ class DateIntervalNormalizer implements NormalizerInterface, DenormalizerInterfa
* *
* @throws InvalidArgumentException * @throws InvalidArgumentException
* @throws UnexpectedValueException * @throws UnexpectedValueException
*
* @return \DateInterval
*/ */
public function denormalize($data, $type, $format = null, array $context = []) public function denormalize($data, $type, $format = null, array $context = [])
{ {

View File

@ -57,6 +57,8 @@ class DateTimeNormalizer implements NormalizerInterface, DenormalizerInterface,
* {@inheritdoc} * {@inheritdoc}
* *
* @throws InvalidArgumentException * @throws InvalidArgumentException
*
* @return string
*/ */
public function normalize($object, $format = null, array $context = []) public function normalize($object, $format = null, array $context = [])
{ {
@ -87,6 +89,8 @@ class DateTimeNormalizer implements NormalizerInterface, DenormalizerInterface,
* {@inheritdoc} * {@inheritdoc}
* *
* @throws NotNormalizableValueException * @throws NotNormalizableValueException
*
* @return \DateTimeInterface
*/ */
public function denormalize($data, $type, $format = null, array $context = []) public function denormalize($data, $type, $format = null, array $context = [])
{ {

View File

@ -25,6 +25,8 @@ class DateTimeZoneNormalizer implements NormalizerInterface, DenormalizerInterfa
* {@inheritdoc} * {@inheritdoc}
* *
* @throws InvalidArgumentException * @throws InvalidArgumentException
*
* @return string
*/ */
public function normalize($object, $format = null, array $context = []) public function normalize($object, $format = null, array $context = [])
{ {
@ -47,6 +49,8 @@ class DateTimeZoneNormalizer implements NormalizerInterface, DenormalizerInterfa
* {@inheritdoc} * {@inheritdoc}
* *
* @throws NotNormalizableValueException * @throws NotNormalizableValueException
*
* @return \DateTimeZone
*/ */
public function denormalize($data, $type, $format = null, array $context = []) public function denormalize($data, $type, $format = null, array $context = [])
{ {

View File

@ -37,6 +37,8 @@ class ProblemNormalizer implements NormalizerInterface, CacheableSupportsMethodI
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @return array
*/ */
public function normalize($exception, $format = null, array $context = []) public function normalize($exception, $format = null, array $context = [])
{ {