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

api-platform / core / 7142557150

08 Dec 2023 02:28PM UTC coverage: 36.003% (-1.4%) from 37.36%
7142557150

push

github

web-flow
fix(jsonld): remove link to ApiDocumentation when doc is disabled (#6029)

0 of 1 new or added line in 1 file covered. (0.0%)

2297 existing lines in 182 files now uncovered.

9992 of 27753 relevant lines covered (36.0%)

147.09 hits per line

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

0.0
/src/Serializer/Tests/Fixtures/ApiResource/PropertyCollectionIriOnlyRelation.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\Get;
17
use ApiPlatform\Metadata\GetCollection;
18
use ApiPlatform\Metadata\Link;
19
use ApiPlatform\Metadata\Post;
20
use Symfony\Component\Serializer\Annotation\Groups;
21

22
#[
23
    Post,
24
    GetCollection(uriTemplate: '/property-collection-relations'),
25
    GetCollection(
UNCOV
26
        uriTemplate: '/parent/{parentId}/another-collection-operations',
×
UNCOV
27
        uriVariables: [
×
UNCOV
28
            'parentId' => new Link(fromProperty: 'propertyCollectionIriOnly', fromClass: PropertyCollectionIriOnly::class),
×
UNCOV
29
        ]
×
UNCOV
30
    ),
×
31
    Get(
UNCOV
32
        uriTemplate: '/parent/{parentId}/another-collection-operations/{id}',
×
UNCOV
33
        uriVariables: [
×
UNCOV
34
            'parentId' => new Link(fromProperty: 'propertyCollectionIriOnly', fromClass: PropertyCollectionIriOnly::class),
×
UNCOV
35
            'id' => new Link(fromProperty: 'id', toClass: PropertyCollectionIriOnlyRelation::class),
×
UNCOV
36
        ]
×
UNCOV
37
    )
×
UNCOV
38
]
×
39
class PropertyCollectionIriOnlyRelation
40
{
41
    /**
42
     * The entity ID.
43
     */
44
    private ?int $id = null;
45

46
    #[Groups('read')]
47
    public string $name = '';
48

49
    private ?PropertyCollectionIriOnly $propertyCollectionIriOnly = null;
50

51
    public function getId(): ?int
52
    {
53
        return $this->id ?? 9999;
×
54
    }
55

56
    public function getPropertyCollectionIriOnly(): ?PropertyCollectionIriOnly
57
    {
58
        return $this->propertyCollectionIriOnly;
×
59
    }
60

61
    public function setPropertyCollectionIriOnly(?PropertyCollectionIriOnly $propertyCollectionIriOnly): void
62
    {
63
        $this->propertyCollectionIriOnly = $propertyCollectionIriOnly;
×
64
    }
65
}
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