Final Class Yiisoft\Proxy\Config\ClassConfig
| Inheritance | Yiisoft\Proxy\Config\ClassConfig |
|---|
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $interfaces | string[] | A list of interfaces this class implements or interface extends from. | Yiisoft\Proxy\Config\ClassConfig |
| $isInterface | boolean | Whether it's config for a class (false value) or an interface (true value). |
Yiisoft\Proxy\Config\ClassConfig |
| $methods | Yiisoft\Proxy\Config\MethodConfig[] | A map where key is a {@see $name} and value is {@see \Yiisoft\Proxy\Config\MethodConfig} instance. | Yiisoft\Proxy\Config\ClassConfig |
| $modifiers | string[] | A list of modifiers, for example: ['final']. |
Yiisoft\Proxy\Config\ClassConfig |
| $name | string | Full name including namespace, for example: Yiisoft\Proxy\Tests\Stub\GraphInterface. |
Yiisoft\Proxy\Config\ClassConfig |
| $namespace | string | Namespace, for example: Yiisoft\Proxy\Tests\Stub. |
Yiisoft\Proxy\Config\ClassConfig |
| $parent | string | Full parent class name including namespace. | Yiisoft\Proxy\Config\ClassConfig |
| $shortName | string | Short name without namespace, for example: GraphInterface. |
Yiisoft\Proxy\Config\ClassConfig |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Proxy\Config\ClassConfig |
Property Details
A list of interfaces this class implements or interface extends from.
A map where key is a {@see $name} and value is {@see \Yiisoft\Proxy\Config\MethodConfig} instance.
A list of modifiers, for example: ['final'].
Full name including namespace, for example: Yiisoft\Proxy\Tests\Stub\GraphInterface.
Namespace, for example: Yiisoft\Proxy\Tests\Stub.
Full parent class name including namespace. Empty string means class have no parent class.
Short name without namespace, for example: GraphInterface.
Method Details
| public mixed __construct ( boolean $isInterface, string $namespace, array $modifiers, string $name, string $shortName, string $parent, array $interfaces, array $methods ) | ||
| $isInterface | boolean | |
| $namespace | string | |
| $modifiers | array | |
| $name | string | |
| $shortName | string | |
| $parent | string | |
| $interfaces | array | |
| $methods | array | |
public function __construct(
/**
* Whether it's config for a class (`false` value) or an interface (`true` value).
*/
public bool $isInterface,
/**
* @var string Namespace, for example: `Yiisoft\Proxy\Tests\Stub`.
*
* @link https://www.php.net/manual/en/language.namespaces.php
*/
public string $namespace,
/**
* @var string[] A list of modifiers, for example: `['final']`.
*/
public array $modifiers,
/**
* @var string Full name including namespace, for example: `Yiisoft\Proxy\Tests\Stub\GraphInterface`.
*/
public string $name,
/**
* @var string Short name without namespace, for example: `GraphInterface`.
*/
public string $shortName,
/**
* @var string Full parent class name including namespace. Empty string means class have no parent class.
*/
public string $parent,
/**
* @var string[] A list of interfaces this class implements or interface extends from.
*/
public array $interfaces,
/**
* @var MethodConfig[] A map where key is a {@see $name} and value is {@see MethodConfig} instance.
* @psalm-var array<string, MethodConfig>
*/
public array $methods,
) {
}
Signup or Login in order to comment.