| 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 |
declare (strict_types=1); |
| 8 |
namespace Packetery\Nette\ComponentModel; |
| 9 |
|
| 10 |
/** |
| 11 |
* Provides functionality required by all components. |
| 12 |
*/ |
| 13 |
interface IComponent |
| 14 |
{ |
| 15 |
/** Separator for component names in path concatenation. */ |
| 16 |
public const NameSeparator = '-'; |
| 17 |
/** @deprecated use IComponent::NameSeparator */ |
| 18 |
public const NAME_SEPARATOR = self::NameSeparator; |
| 19 |
function getName() : ?string; |
| 20 |
/** |
| 21 |
* Returns the parent container if any. |
| 22 |
*/ |
| 23 |
function getParent() : ?IContainer; |
| 24 |
/** |
| 25 |
* Sets the parent of this component. |
| 26 |
* @return static |
| 27 |
*/ |
| 28 |
function setParent(?IContainer $parent, ?string $name = null); |
| 29 |
} |
| 30 |
|