Skip to content

Commit

Permalink
Improve return phpdoc for Normalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Nov 25, 2020
1 parent 598de8d commit 5719c6d
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Normalizer/ArrayDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class ArrayDenormalizer implements ContextAwareDenormalizerInterface, Serializer
* {@inheritdoc}
*
* @throws NotNormalizableValueException
*
* @return array
*/
public function denormalize($data, $type, $format = null, array $context = [])
{
Expand Down
2 changes: 2 additions & 0 deletions Normalizer/ConstraintViolationListNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public function __construct($defaultContext = [], NameConverterInterface $nameCo

/**
* {@inheritdoc}
*
* @return array
*/
public function normalize($object, $format = null, array $context = [])
{
Expand Down
4 changes: 4 additions & 0 deletions Normalizer/DataUriNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public function __construct($mimeTypeGuesser = null)

/**
* {@inheritdoc}
*
* @return string
*/
public function normalize($object, $format = null, array $context = [])
{
Expand Down Expand Up @@ -102,6 +104,8 @@ public function supportsNormalization($data, $format = null)
*
* @throws InvalidArgumentException
* @throws NotNormalizableValueException
*
* @return \SplFileInfo
*/
public function denormalize($data, $type, $format = null, array $context = [])
{
Expand Down
4 changes: 4 additions & 0 deletions Normalizer/DateIntervalNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function __construct($defaultContext = [])
* {@inheritdoc}
*
* @throws InvalidArgumentException
*
* @return string
*/
public function normalize($object, $format = null, array $context = [])
{
Expand Down Expand Up @@ -77,6 +79,8 @@ public function hasCacheableSupportsMethod(): bool
*
* @throws InvalidArgumentException
* @throws UnexpectedValueException
*
* @return \DateInterval
*/
public function denormalize($data, $type, $format = null, array $context = [])
{
Expand Down
4 changes: 4 additions & 0 deletions Normalizer/DateTimeNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function __construct($defaultContext = [], \DateTimeZone $timezone = null
* {@inheritdoc}
*
* @throws InvalidArgumentException
*
* @return string
*/
public function normalize($object, $format = null, array $context = [])
{
Expand Down Expand Up @@ -87,6 +89,8 @@ public function supportsNormalization($data, $format = null)
* {@inheritdoc}
*
* @throws NotNormalizableValueException
*
* @return \DateTimeInterface
*/
public function denormalize($data, $type, $format = null, array $context = [])
{
Expand Down
4 changes: 4 additions & 0 deletions Normalizer/DateTimeZoneNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class DateTimeZoneNormalizer implements NormalizerInterface, DenormalizerInterfa
* {@inheritdoc}
*
* @throws InvalidArgumentException
*
* @return string
*/
public function normalize($object, $format = null, array $context = [])
{
Expand All @@ -47,6 +49,8 @@ public function supportsNormalization($data, $format = null)
* {@inheritdoc}
*
* @throws NotNormalizableValueException
*
* @return \DateTimeZone
*/
public function denormalize($data, $type, $format = null, array $context = [])
{
Expand Down
2 changes: 2 additions & 0 deletions Normalizer/ProblemNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public function __construct(bool $debug = false, array $defaultContext = [])

/**
* {@inheritdoc}
*
* @return array
*/
public function normalize($exception, $format = null, array $context = [])
{
Expand Down

0 comments on commit 5719c6d

Please sign in to comment.