public function schemaToClassName(SchemaDescriptor $schema, $withMajor = false)
    {
        $className = StringUtils::toCamelFromSlug($schema->getId()->getMessage());
        if (!$withMajor) {
            return $className;
        }

        return "{$className}V{$schema->getId()->getVersion()->getMajor()}";
    }
public function schemaToClassName(SchemaDescriptor $schema, $withMajor = false)
    {
        $className = StringUtils::toCamelFromSlug($schema->getId()->getMessage());
        if (!$withMajor) {
            return $className;
        }

        return "{$className}V{$schema->getId()->getVersion()->getMajor()}";
    }
public function schemaToClassName ( SchemaDescriptor $ schema , $ withMajor = false ) { $ className = StringUtils :: toCamelFromSlug ( $ schema -> getId ( ) -> getMessage ( ) ) ; if ( ! $ withMajor ) { return $ className ; } return "{$className}V{$schema->getId()->getVersion()->getMajor()}" ; }
Returns the class name to be used for the given SchemaDescriptor.

@param SchemaDescriptor $schema
@param bool             $withMajor

@return string
Returns the class name to be used for the given SchemaDescriptor .