Issues (71)

src/Event/Metadata.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApiSkeletons\Doctrine\ORM\GraphQL\Event;
6
7
use ArrayObject;
8
use League\Event\HasEventName;
9
use Override;
0 ignored issues
show
The type Override was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
/**
12
 * This event is fired when the metadta is created
13
 */
14
class Metadata implements
15
    HasEventName
16
{
17
    public function __construct(
18
        protected readonly ArrayObject $metadata,
19
        protected readonly string $eventName,
20
    ) {
21
    }
22
23
    #[Override]
24
    public function eventName(): string
25
    {
26
        return $this->eventName;
27
    }
28
29
    public function getMetadata(): ArrayObject
30
    {
31
        return $this->metadata;
32
    }
33
}
34