Componere\Abstract\Definition::addTrait

(Componere 2 >= 2.1.0)

Componere\Abstract\Definition::addTraitAdd Trait

Опис

public 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