• 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/IContainer.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
use Nette;
13

14

15
/**
16
 * Defines functionality for objects that can contain other components.
17
 * @template T of IComponent
18
 */
19
interface IContainer extends IComponent
20
{
21
        /**
22
         * Adds the component to the container.
23
         * @param  T  $component
24
         */
25
        function addComponent(IComponent $component, ?string $name): static;
26

27
        /**
28
         * Removes the component from the container.
29
         * @param  T  $component
30
         */
31
        function removeComponent(IComponent $component): void;
32

33
        /**
34
         * Returns component specified by name or path.
35
         * @return T
36
         * @throws Nette\InvalidArgumentException  if component doesn't exist
37
         */
38
        function getComponent(string $name): ?IComponent;
39

40
        /**
41
         * Returns immediate child components.
42
         * @return array<int|string,T>
43
         */
44
        function getComponents(): iterable;
45
}
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