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

api-platform / core / 10666087792

02 Sep 2024 11:14AM UTC coverage: 7.665% (-0.003%) from 7.668%
10666087792

push

github

web-flow
fix: remove PUT from default operations (#6570)

4 of 24 new or added lines in 5 files covered. (16.67%)

3972 existing lines in 105 files now uncovered.

12518 of 163307 relevant lines covered (7.67%)

22.85 hits per line

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

0.0
/tests/Fixtures/TestBundle/Entity/SubresourceEmployee.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\Tests\Fixtures\TestBundle\Entity;
15

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

19
#[ApiResource(
NEW
20
    uriTemplate: '/subresource_organizations/{subresourceOrganization}/subresource_employees',
×
21
    types: ['https://schema.org/Person']
×
22
)]
×
23
#[ORM\Entity]
24
class SubresourceEmployee
25
{
26
    #[ORM\Id]
27
    #[ORM\GeneratedValue]
28
    #[ORM\Column]
29
    private ?int $id = null;
30

31
    #[ORM\Column(length: 255, nullable: true)]
32
    private ?string $name = null;
33

34
    #[ORM\ManyToOne(inversedBy: 'employees')]
35
    #[ORM\JoinColumn(nullable: false)]
36
    private ?SubresourceOrganization $subresourceOrganization = null;
37

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

43
    public function getName(): ?string
44
    {
45
        return $this->name;
×
46
    }
47

48
    public function setName(?string $name): self
49
    {
50
        $this->name = $name;
×
51

52
        return $this;
×
53
    }
54

55
    public function getSubresourceOrganization(): ?SubresourceOrganization
56
    {
57
        return $this->subresourceOrganization;
×
58
    }
59

60
    public function setSubresourceOrganization(?SubresourceOrganization $subresourceOrganization): self
61
    {
62
        $this->subresourceOrganization = $subresourceOrganization;
×
63

64
        return $this;
×
65
    }
66
}
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