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

nette / application / 28120116131

24 Jun 2026 05:59PM UTC coverage: 84.766% (+0.2%) from 84.605%
28120116131

push

github

dg
added CLAUDE.md

1992 of 2350 relevant lines covered (84.77%)

0.85 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
        #[\Deprecated]
17
        public function hasAnnotation(string $name): bool
18
        {
19
                trigger_error(__METHOD__ . '() is deprecated', E_USER_DEPRECATED);
×
20
                return (bool) ComponentReflection::parseAnnotation($this, $name);
×
21
        }
22

23

24
        #[\Deprecated]
25
        public function getAnnotation(string $name): mixed
26
        {
27
                trigger_error(__METHOD__ . '() is deprecated', E_USER_DEPRECATED);
×
28
                $res = ComponentReflection::parseAnnotation($this, $name);
×
29
                return $res ? end($res) : null;
×
30
        }
31
}
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