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

tochka-developers / jsonrpc / 4135501466

pending completion
4135501466

push

github

darkdarin
Merge remote-tracking branch 'origin/v5.0'

209 of 813 new or added lines in 51 files covered. (25.71%)

233 of 1307 relevant lines covered (17.83%)

1.84 hits per line

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

0.0
/src/Support/AnnotationReader.php
1
<?php
2

3
namespace Tochka\JsonRpc\Support;
4

5
use Spiral\Attributes\ReaderInterface;
6
use Tochka\JsonRpc\Contracts\AnnotationReaderInterface;
7

8
class AnnotationReader implements AnnotationReaderInterface
9
{
10
    private ReaderInterface $reader;
11

12
    public function __construct(ReaderInterface $reader)
13
    {
NEW
14
        $this->reader = $reader;
×
15
    }
16

17
    public function getClassMetadata(\ReflectionClass $class, string $name = null): iterable
18
    {
NEW
19
        return $this->reader->getClassMetadata($class, $name);
×
20
    }
21

22
    public function firstClassMetadata(\ReflectionClass $class, string $name): ?object
23
    {
NEW
24
        return $this->reader->firstClassMetadata($class, $name);
×
25
    }
26

27
    public function getFunctionMetadata(\ReflectionFunctionAbstract $function, string $name = null): iterable
28
    {
NEW
29
        return $this->reader->getFunctionMetadata($function, $name);
×
30
    }
31

32
    public function firstFunctionMetadata(\ReflectionFunctionAbstract $function, string $name): ?object
33
    {
NEW
34
        return $this->reader->firstFunctionMetadata($function, $name);
×
35
    }
36

37
    public function getPropertyMetadata(\ReflectionProperty $property, string $name = null): iterable
38
    {
NEW
39
        return $this->reader->getPropertyMetadata($property, $name);
×
40
    }
41

42
    public function firstPropertyMetadata(\ReflectionProperty $property, string $name): ?object
43
    {
NEW
44
        return $this->reader->firstPropertyMetadata($property, $name);
×
45
    }
46

47
    public function getConstantMetadata(\ReflectionClassConstant $constant, string $name = null): iterable
48
    {
NEW
49
        return $this->reader->getConstantMetadata($constant, $name);
×
50
    }
51

52
    public function firstConstantMetadata(\ReflectionClassConstant $constant, string $name): ?object
53
    {
NEW
54
        return $this->reader->firstConstantMetadata($constant, $name);
×
55
    }
56

57
    public function getParameterMetadata(\ReflectionParameter $parameter, string $name = null): iterable
58
    {
NEW
59
        return $this->reader->getParameterMetadata($parameter, $name);
×
60
    }
61

62
    public function firstParameterMetadata(\ReflectionParameter $parameter, string $name): ?object
63
    {
NEW
64
        return $this->reader->firstParameterMetadata($parameter, $name);
×
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

© 2025 Coveralls, Inc