Joli\Jane\OpenApi\Tests\Expected\Normalizer\ObjectPropertyNormalizer::normalize PHP Метод

normalize() публичный Метод

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