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

wol-soft / php-json-schema-model-generator-production / 26772185957

01 Jun 2026 05:54PM UTC coverage: 22.282%. Remained the same
26772185957

push

github

wol-soft
Replace getRawModelDataInput() with meta() on all public interfaces

- JSONModelInterface and BuilderInterface expose the same concept (raw model
  input access) and are updated identically: getRawModelDataInput(): array is
  replaced by meta(): Meta so callers get a live-reference accessor
- Meta constructor changed from closure to array reference: simpler, consistent
  with how AdditionalPropertiesAccessor and PatternPropertiesAccessor hold
  references, and avoids unnecessary indirection for a read-only field

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

0 of 2 new or added lines in 1 file covered. (0.0%)

166 of 745 relevant lines covered (22.28%)

0.75 hits per line

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

0.0
/src/Accessor/Meta.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace PHPModelGenerator\Accessor;
6

7
/**
8
 * Provides access to the raw model input without exposing it as a public method on the model class.
9
 *
10
 * A reference to the backing array is held so that changes made through the model
11
 * (e.g. property setters that update $_rawModelDataInput) are immediately visible.
12
 */
13
class Meta
14
{
NEW
15
    public function __construct(private array &$rawModelDataInput) {}
×
16

17
    public function rawInput(): array
×
18
    {
NEW
19
        return $this->rawModelDataInput;
×
20
    }
21
}
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

© 2026 Coveralls, Inc