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

api-platform / core / 10729306835

05 Sep 2024 10:46PM UTC coverage: 7.655% (-0.01%) from 7.665%
10729306835

push

github

web-flow
Merge pull request #6586 from soyuka/merge-342

Merge 3.4

0 of 54 new or added lines in 12 files covered. (0.0%)

8760 existing lines in 277 files now uncovered.

12505 of 163357 relevant lines covered (7.66%)

22.84 hits per line

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

0.0
/src/Symfony/Tests/Fixtures/TestBundle/Entity/DummyOffer.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\Symfony\Tests\Fixtures\TestBundle\Entity;
15

16
use ApiPlatform\Metadata\ApiResource;
17
use Doctrine\ORM\Mapping as ORM;
18

19
/**
20
 * Dummy Offer.
21
 *
22
 * https://github.com/api-platform/core/issues/1107.
23
 *
24
 * @author Antoine Bluchet <soyuka@gmail.com>
25
 */
26
#[ApiResource]
27
#[ORM\Entity]
28
class DummyOffer
29
{
30
    /**
31
     * @var int The id
32
     */
33
    #[ORM\Column(type: 'integer')]
34
    #[ORM\Id]
35
    #[ORM\GeneratedValue(strategy: 'AUTO')]
36
    private ?int $id = null;
37
    /**
38
     * @var int The dummy aggregate offer value
39
     */
40
    #[ORM\Column(type: 'integer')]
41
    private int $value;
42

43
    public function getId(): ?int
44
    {
NEW
45
        return $this->id;
×
46
    }
47

48
    public function setId(int $id): void
49
    {
NEW
50
        $this->id = $id;
×
51
    }
52

53
    public function getValue(): int
54
    {
NEW
55
        return $this->value;
×
56
    }
57

58
    public function setValue(int $value): void
59
    {
NEW
60
        $this->value = $value;
×
61
    }
62
}
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