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

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

12 May 2026 08:29AM UTC coverage: 23.529% (+0.3%) from 23.276%
25722874106

Pull #14

github

web-flow
Merge cdd636bac into 76710d87f
Pull Request #14: Json schema draft7

32 of 123 new or added lines in 15 files covered. (26.02%)

1 existing line in 1 file now uncovered.

164 of 697 relevant lines covered (23.53%)

0.79 hits per line

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

0.0
/src/ValueObject/MediaString.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace PHPModelGenerator\ValueObject;
6

7
use Stringable;
8

9
/**
10
 * Mutable wrapper for a string property that carries contentMediaType / contentEncoding metadata.
11
 *
12
 * Used when neither readOnly, writeOnly, nor global immutability applies.
13
 * The schema-defined media type and encoding are injected at construction time.
14
 */
15
class MediaString implements Stringable
16
{
NEW
17
    public function __construct(
×
18
        private string $value,
19
        private readonly ?string $mediaType = null,
20
        private readonly ?string $encoding = null,
NEW
21
    ) {}
×
22

NEW
23
    public function getValue(): string
×
24
    {
NEW
25
        return $this->value;
×
26
    }
27

NEW
28
    public function getMediaType(): ?string
×
29
    {
NEW
30
        return $this->mediaType;
×
31
    }
32

NEW
33
    public function getEncoding(): ?string
×
34
    {
NEW
35
        return $this->encoding;
×
36
    }
37

NEW
38
    public function setValue(string $value): static
×
39
    {
NEW
40
        $this->value = $value;
×
41

NEW
42
        return $this;
×
43
    }
44

NEW
45
    public function __toString(): string
×
46
    {
NEW
47
        return $this->value;
×
48
    }
49
}
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