Lumen 快速开发工具包  v1.2.2
TransformerCreator类 参考

Public 成员函数

 __construct ($name, $files=null)
 
 create ($class_name, $relations)
 
 getPath ($name)
 

Protected 成员函数

 getNamespace ($name)
 
 populateStub (&$stub, $name)
 
 replaceFill (&$stub, $relations)
 
 replaceRelations (&$stub, $relations, $class_name)
 
 dummyFunctionOne ($relation)
 
 dummyFunctionMany ($relation, $model)
 

Protected 属性

 $name
 
 $bluePrint = ''
 
 $files
 

构造及析构函数说明

◆ __construct()

__construct (   $name,
  $files = null 
)

ControllerCreator constructor.

参数
string$name
null$files

成员函数说明

◆ create()

create (   $class_name,
  $relations 
)

Create a controller.

参数
string$table_name
异常

◆ getNamespace()

getNamespace (   $name)
protected

Get controller namespace from giving name.

参数
string$name
返回
string

被这些函数引用 TransformerCreator\populateStub().

这是这个函数的调用关系图:

◆ getPath()

getPath (   $name)

Get file path from giving controller name.

参数
$name
返回
string

◆ populateStub()

populateStub ( $stub,
  $name 
)
protected

Populate stub.

参数
string$name
string$stub
返回
mixed

引用了 TransformerCreator\getNamespace().

函数调用图:

该类的文档由以下文件生成: