class TestNormalizer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/TestNormalizer.php \Symfony\Component\Serializer\Tests\Normalizer\TestNormalizer
Provides a test Normalizer which only implements the NormalizerInterface.
@author Lin Clark <lin@lin-clark.com>
Hierarchy
- class \Symfony\Component\Serializer\Tests\Normalizer\TestNormalizer implements NormalizerInterface
Expanded class hierarchy of TestNormalizer
1 file declares its use of TestNormalizer
- SerializerTest.php in vendor/
symfony/ serializer/ Tests/ SerializerTest.php
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ TestNormalizer.php, line 21
Namespace
Symfony\Component\Serializer\Tests\NormalizerView source
class TestNormalizer implements NormalizerInterface {
/**
* {@inheritdoc}
*/
public function normalize($object, $format = null, array $context = array()) {
}
/**
* {@inheritdoc}
*/
public function supportsNormalization($data, $format = null) {
return true;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestNormalizer:: |
public | function |
Normalizes an object into a set of arrays/scalars. Overrides NormalizerInterface:: |
|
TestNormalizer:: |
public | function |
Checks whether the given class is supported for normalization by this normalizer. Overrides NormalizerInterface:: |