• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wol-soft / php-json-schema-model-generator / 4014311194

pending completion
4014311194

push

github

Enno Woortmann
Fix pattern properties with forward slashes (used as delimiter) by adding slash escaping (#65)

10 of 10 new or added lines in 4 files covered. (100.0%)

2613 of 2647 relevant lines covered (98.72%)

513.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Utils/ClassNameGeneratorInterface.php
1
<?php
2

3
declare(strict_types = 1);
4

5
namespace PHPModelGenerator\Utils;
6

7
use PHPModelGenerator\Model\SchemaDefinition\JsonSchema;
8

9
/**
10
 * Interface ClassNameGeneratorInterface
11
 *
12
 * @package PHPModelGenerator\PropertyProcessor\Decorator\ClassName
13
 */
14
interface ClassNameGeneratorInterface
15
{
16
    /**
17
     * Hook into the class name generation. Returns the name of a class.
18
     *
19
     * @param string     $propertyName     If a json file is handled, contains the name of the file.
20
     *                                     Otherwise the name of the property which contains the nested object
21
     * @param JsonSchema $schema           The structure of the schema which is represented by the generated class
22
     * @param bool       $isMergeClass     Is it a merge class? example: allOf schema composition
23
     * @param string     $currentClassName The class name of the parent class if the class represents a nested object
24
     *
25
     * @return string
26
     */
27
    public function getClassName(
28
        string $propertyName,
29
        JsonSchema $schema,
30
        bool $isMergeClass,
31
        string $currentClassName = ''
32
    ): string;
×
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc