
| Current Path : /var/www/html/sirius-pallets/web/core/modules/serialization/src/Normalizer/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/sirius-pallets/web/core/modules/serialization/src/Normalizer/NullNormalizer.php |
<?php
namespace Drupal\serialization\Normalizer;
/**
* Null normalizer.
*/
class NullNormalizer extends NormalizerBase {
/**
* The interface or class that this Normalizer supports.
*
* @var string[]
*/
protected array $supportedTypes = ['*' => FALSE];
/**
* Constructs a NullNormalizer object.
*
* @param string|array $supported_interface_of_class
* The supported interface(s) or class(es).
*/
public function __construct($supported_interface_of_class) {
$this->supportedTypes = [$supported_interface_of_class => TRUE];
}
/**
* {@inheritdoc}
*/
public function normalize($object, $format = NULL, array $context = []): array|string|int|float|bool|\ArrayObject|NULL {
return NULL;
}
/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array {
return $this->supportedTypes;
}
}