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

nette / application / 27919019709

21 Jun 2026 10:08PM UTC coverage: 84.111% (+0.05%) from 84.059%
27919019709

push

github

dg
phpstan fix

2038 of 2423 relevant lines covered (84.11%)

0.84 hits per line

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

0.0
/src/Application/UI/MethodReflection.php
1
<?php declare(strict_types=1);
2

3
/**
4
 * This file is part of the Nette Framework (https://nette.org)
5
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6
 */
7

8
namespace Nette\Application\UI;
9

10

11
/**
12
 * @internal
13
 */
14
final class MethodReflection extends \ReflectionMethod
15
{
16
        /**
17
         * Has method specified annotation?
18
         */
19
        public function hasAnnotation(string $name): bool
20
        {
21
                return (bool) ComponentReflection::parseAnnotation($this, $name);
×
22
        }
23

24

25
        /**
26
         * Returns an annotation value.
27
         */
28
        public function getAnnotation(string $name): mixed
29
        {
30
                $res = ComponentReflection::parseAnnotation($this, $name);
×
31
                return $res ? end($res) : null;
×
32
        }
33
}
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