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

overblog / GraphQLBundle / 13084981376

19 Dec 2024 02:51PM UTC coverage: 98.368%. Remained the same
13084981376

push

github

web-flow
Merge pull request #1197 from maximecolin/patch-4

Fix typo in attributes documentation

4339 of 4411 relevant lines covered (98.37%)

39.99 hits per line

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

0.0
/src/Annotation/EnumValue.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Overblog\GraphQLBundle\Annotation;
6

7
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
8

9
/**
10
 * Annotation for GraphQL enum value.
11
 *
12
 * @Annotation
13
 * @NamedArgumentConstructor
14
 * @Target({"ANNOTATION", "CLASS"})
15
 */
16
final class EnumValue extends Annotation
17
{
18
    /**
19
     * @var string
20
     */
21
    public ?string $name;
22

23
    /**
24
     * @var string
25
     */
26
    public ?string $description;
27

28
    /**
29
     * @var string
30
     */
31
    public ?string $deprecationReason;
32

33
    /**
34
     * @param string|null $name              The constant name to attach description or deprecation reason to
35
     * @param string|null $description       The description of the enum value
36
     * @param string|null $deprecationReason The deprecation reason of the enum value
37
     */
38
    public function __construct(?string $name = null, ?string $description = null, ?string $deprecationReason = null)
39
    {
40
        $this->name = $name;
×
41
        $this->description = $description;
×
42
        $this->deprecationReason = $deprecationReason;
×
43
    }
×
44
}
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