编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Componere\Abstract\Definition::addMethod
  • Componere\Abstract\Definition::getReflector »
  • PHP Manual
  • Componere\Abstract\Definition
  • Add Trait

Componere\Abstract\Definition::addTrait

(Componere 2 >= 2.1.0)

Componere\Abstract\Definition::addTrait — Add 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

Warning

Shall throw RuntimeException if Definition was registered

相关文章
php 影响 php 行为的扩展 componerephp componere the componere abstract definition classphp componere the componere definition classphp componere abstract definition add interfacephp componere abstract definition add methodphp componere abstract definition add traitphp componere abstract definition reflectionphp componere definition add constantphp componere definition add propertyphp componere definition definition constructionphp componere definition get closurephp componere definition get closuresphp componere definition state detectionphp componere definition registrationphp swoole 函数 add new callback functions of a socket into the eventloopphp gearmanclient add a background task to be run in parallelphp gearmanworker add worker optionsphp harudoc add new page to the documentphp phardata add an empty directory to the tar/zip archivephp ziparchive add a new directory
关注编程学问公众号
编程学问网 湘ICP备20001732号