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

nette / component-model / 15762957805

19 Jun 2025 05:00PM UTC coverage: 85.514%. Remained the same
15762957805

push

github

dg
removed attached() & detached() methods (BC break)

1 of 2 new or added lines in 1 file covered. (50.0%)

25 existing lines in 4 files now uncovered.

183 of 214 relevant lines covered (85.51%)

0.86 hits per line

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

100.0
/src/ComponentModel/IComponent.php
1
<?php
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
declare(strict_types=1);
9

10
namespace Nette\ComponentModel;
11

12

13
/**
14
 * Defines core functionality required by all components.
15
 * @template T of IContainer
16
 */
17
interface IComponent
18
{
19
        /** Separator for component names in path concatenation. */
20
        public const NameSeparator = '-';
21

22
        /** @deprecated use IComponent::NameSeparator */
23
        public const NAME_SEPARATOR = self::NameSeparator;
24

25
        function getName(): ?string;
26

27
        /**
28
         * Returns the parent container if any.
29
         * @return ?T
30
         */
31
        function getParent(): ?IContainer;
32

33
        /**
34
         * Sets the parent container and optionally renames the component.
35
         * @param  ?T  $parent
36
         */
37
        function setParent(?IContainer $parent, ?string $name = null): static;
38
}
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