Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
3 / 3 |
| NullNormalizer | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
3 / 3 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| normalize | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\serialization\Normalizer\NullNormalizer. | |
| */ | |
| namespace Drupal\serialization\Normalizer; | |
| /** | |
| * Null normalizer. | |
| */ | |
| class NullNormalizer extends NormalizerBase { | |
| /** | |
| * 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->supportedInterfaceOrClass = $supported_interface_of_class; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function normalize($object, $format = NULL, array $context = array()) { | |
| return NULL; | |
| } | |
| } |