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

api-platform / core / 6067528200

04 Sep 2023 12:12AM UTC coverage: 36.875% (-21.9%) from 58.794%
6067528200

Pull #5791

github

web-flow
Merge 64157e578 into d09cfc9d2
Pull Request #5791: fix: strip down any sql function name

3096 of 3096 new or added lines in 205 files covered. (100.0%)

9926 of 26918 relevant lines covered (36.87%)

6.5 hits per line

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

0.0
/src/Serializer/Tests/Fixtures/ApiResource/DummyTableInheritanceRelated.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\Serializer\Tests\Fixtures\ApiResource;
15

16
use ApiPlatform\Metadata\ApiResource;
17
use Doctrine\Common\Collections\ArrayCollection;
18
use Doctrine\Common\Collections\Collection;
19
use Symfony\Component\Serializer\Annotation\Groups;
20

21
#[ApiResource(normalizationContext: ['groups' => ['default']], denormalizationContext: ['groups' => ['default']])]
22
class DummyTableInheritanceRelated
23
{
24
    /**
25
     * @var int The id
26
     */
27
    #[Groups(['default'])]
28
    private ?int $id = null;
29
    /**
30
     * @var Collection<int, DummyTableInheritance> Related children
31
     */
32
    #[Groups(['default'])]
33
    private Collection|iterable $children;
34

35
    public function __construct()
36
    {
37
        $this->children = new ArrayCollection();
×
38
    }
39

40
    public function getId(): ?int
41
    {
42
        return $this->id;
×
43
    }
44

45
    public function getChildren(): Collection|iterable
46
    {
47
        return $this->children;
×
48
    }
49

50
    public function setChildren(Collection|iterable $children)
51
    {
52
        $this->children = $children;
×
53

54
        return $this;
×
55
    }
56

57
    public function addChild($child)
58
    {
59
        $this->children->add($child);
×
60
        $child->setParent($this);
×
61

62
        return $this;
×
63
    }
64

65
    public function removeChild($child)
66
    {
67
        $this->children->remove($child);
×
68

69
        return $this;
×
70
    }
71
}
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