0 follower

Final Class Yiisoft\Proxy\Config\ClassConfig

InheritanceYiisoft\Proxy\Config\ClassConfig

Public Properties

Hide inherited 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

Hide inherited methods

Method Description Defined By
__construct() Yiisoft\Proxy\Config\ClassConfig

Property Details

Hide inherited properties

$interfaces public property

A list of interfaces this class implements or interface extends from.

public string[] $interfaces null
$isInterface public property
public boolean $isInterface null
$methods public property

A map where key is a {@see $name} and value is {@see \Yiisoft\Proxy\Config\MethodConfig} instance.

$modifiers public property

A list of modifiers, for example: ['final'].

public string[] $modifiers null
$name public property

Full name including namespace, for example: Yiisoft\Proxy\Tests\Stub\GraphInterface.

public string $name null
$namespace public property

Namespace, for example: Yiisoft\Proxy\Tests\Stub.

public string $namespace null
$parent public property

Full parent class name including namespace. Empty string means class have no parent class.

public string $parent null
$shortName public property

Short name without namespace, for example: GraphInterface.

public string $shortName null

Method Details

Hide inherited methods

__construct() public method

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,
) {
}