gossi\codegen\model\TraitsInterface::addTrait PHP Method

addTrait() public method

If the trait is passed as PhpTrait object, the trait is also added as use statement.
public addTrait ( PhpTrait | string $trait )
$trait PhpTrait | string trait or qualified name
    public function addTrait($trait);