编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 componere the componere abstract definition classphp componere the componere definition classphp yaf the yaf config abstract classphp yaf the yaf plugin abstract 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 componere value value interactionphp ncurses 函数 move position and add stringphp imagickdraw terminates a clip path definitionphp opcode descriptions and examples assign addphp swoole client add the tcp client back into the system event loop.
关注编程学问公众号
编程学问网 湘ICP备20001732号