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

api-platform / core / 15775135891

20 Jun 2025 08:42AM UTC coverage: 22.065% (+0.2%) from 21.876%
15775135891

push

github

soyuka
Merge 4.1

13 of 103 new or added lines in 10 files covered. (12.62%)

868 existing lines in 35 files now uncovered.

11487 of 52060 relevant lines covered (22.06%)

21.72 hits per line

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

0.0
/src/Metadata/Tests/Fixtures/StateOptions.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Metadata\Tests\Fixtures;
15

16
use ApiPlatform\State\OptionsInterface;
17

18
class StateOptions implements OptionsInterface
19
{
20
    public function __construct(
21
        protected ?string $index = null,
22
    ) {
UNCOV
23
    }
×
24

25
    public function getIndex(): ?string
26
    {
UNCOV
27
        return $this->index;
×
28
    }
29

30
    public function withIndex(?string $index): self
31
    {
UNCOV
32
        $self = clone $this;
×
33
        $self->index = $index;
×
34

UNCOV
35
        return $self;
×
36
    }
37
}
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