Componere\Abstract\Definition::addTrait

Add Trait

Description

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

Shall use the given trait for the current definition

Parameters

trait

The case insensitive name of a trait

Return Values

The current Definition

Exceptions

Warning

Shall throw RuntimeException if Definition was registered