Componere\Abstract\Definition::addTrait

Add Trait

説明

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

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