Componere\Abstract\Definition::addTrait
PHP Manual
PHP Manual»Componere\Abstract\Definition»Componere\Abstract\Definition::addTrait

Componere\Abstract\Definition::addTrait

(Componere 2 >= 2.1.0)

Componere\Abstract\Definition::addTraitAdd Trait

Опис

public function Componere\Abstract\Definition::addTrait(string $trait): Definition

Shall use the given trait for the current definition

Параметри

trait
The case insensitive name of a trait

Значення, що повертаються

The current Definition

Exceptions

Увага

Shall throw RuntimeException if Definition was registered

To Top