Joli\Jane\Tests\Expected\Normalizer\ChildtypeNormalizer::normalize PHP Method

normalize() public method

public normalize ( $object, $format = null, array $context = [] )
$context array
    public function normalize($object, $format = null, array $context = [])
    {
        $data = new \stdClass();
        if (null !== $object->getChildProperty()) {
            $data->{'childProperty'} = $object->getChildProperty();
        }
        if (null !== $object->getInheritedProperty()) {
            $data->{'inheritedProperty'} = $object->getInheritedProperty();
        }
        return $data;
    }