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

api-platform / core / 15955912273

29 Jun 2025 01:51PM UTC coverage: 22.057% (-0.03%) from 22.082%
15955912273

Pull #7249

github

web-flow
Merge d9904d788 into a42034dc3
Pull Request #7249: chore: solve some phpstan issues

0 of 9 new or added lines in 8 files covered. (0.0%)

11540 existing lines in 372 files now uncovered.

11522 of 52237 relevant lines covered (22.06%)

11.08 hits per line

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

0.0
/src/Doctrine/Common/Tests/Fixtures/TestBundle/Entity/EmbeddableDummy.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\Doctrine\Common\Tests\Fixtures\TestBundle\Entity;
15

16
use Doctrine\ORM\Mapping as ORM;
17
use Symfony\Component\Serializer\Annotation\Groups;
18
use Symfony\Component\Validator\Constraints as Assert;
19

20
/**
21
 * Embeddable Dummy.
22
 *
23
 * @author Jordan Samouh <jordan.samouh@gmail.com>
24
 */
25
#[ORM\Embeddable]
26
class EmbeddableDummy
27
{
28
    /**
29
     * @var string The dummy name
30
     */
31
    #[ORM\Column(nullable: true)]
32
    #[Groups(['embed'])]
33
    private ?string $dummyName = null;
34
    /**
35
     * @var bool|null A dummy boolean
36
     */
37
    #[ORM\Column(type: 'boolean', nullable: true)]
38
    public ?bool $dummyBoolean = null;
39
    /**
40
     * @var \DateTime|null A dummy date
41
     */
42
    #[ORM\Column(type: 'datetime', nullable: true)]
43
    #[Assert\DateTime]
44
    public ?\DateTime $dummyDate = null;
45
    /**
46
     * @var float|null A dummy float
47
     */
48
    #[ORM\Column(type: 'float', nullable: true)]
49
    public ?float $dummyFloat = null;
50
    /**
51
     * @var string|null A dummy price
52
     */
53
    #[ORM\Column(type: 'decimal', precision: 10, scale: 2, nullable: true)]
54
    public ?string $dummyPrice = null;
55
    #[ORM\Column(type: 'string', nullable: true)]
56
    #[Groups(['barcelona', 'chicago'])]
57
    protected $symfony;
58

59
    public static function staticMethod(): void
60
    {
61
    }
×
62

63
    public function __construct()
64
    {
65
    }
×
66

67
    public function getDummyName(): ?string
68
    {
69
        return $this->dummyName;
×
70
    }
71

72
    public function setDummyName(string $dummyName): void
73
    {
74
        $this->dummyName = $dummyName;
×
75
    }
76

77
    public function isDummyBoolean(): ?bool
78
    {
79
        return $this->dummyBoolean;
×
80
    }
81

82
    public function setDummyBoolean(bool $dummyBoolean): void
83
    {
84
        $this->dummyBoolean = $dummyBoolean;
×
85
    }
86

87
    public function getDummyDate(): ?\DateTime
88
    {
89
        return $this->dummyDate;
×
90
    }
91

92
    public function setDummyDate(\DateTime $dummyDate): void
93
    {
94
        $this->dummyDate = $dummyDate;
×
95
    }
96

97
    public function getDummyFloat(): ?float
98
    {
99
        return $this->dummyFloat;
×
100
    }
101

102
    public function setDummyFloat(float $dummyFloat): void
103
    {
104
        $this->dummyFloat = $dummyFloat;
×
105
    }
106

107
    public function getDummyPrice(): ?string
108
    {
109
        return $this->dummyPrice;
×
110
    }
111

112
    public function setDummyPrice(string $dummyPrice): void
113
    {
114
        $this->dummyPrice = $dummyPrice;
×
115
    }
116

117
    public function getSymfony()
118
    {
119
        return $this->symfony;
×
120
    }
121

122
    public function setSymfony($symfony): void
123
    {
124
        $this->symfony = $symfony;
×
125
    }
126
}
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