fixed:云上传配置无法生效
This commit is contained in:
37
extend/catcher/generate/build/classes/Traits.php
Normal file
37
extend/catcher/generate/build/classes/Traits.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
namespace catcher\generate\classes;
|
||||
|
||||
class Traits extends Iteration
|
||||
{
|
||||
protected $trait = [];
|
||||
|
||||
public function name($name)
|
||||
{
|
||||
if (!empty($this->trait)) {
|
||||
$this->data[] = $this->trait;
|
||||
|
||||
$this->trait = [];
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->trait['name'] = $name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function adaptation($name)
|
||||
{
|
||||
$this->trait['adaptation'] = $name;
|
||||
}
|
||||
|
||||
public function insteadof($name)
|
||||
{
|
||||
$this->trait['insteadof'] = $name;
|
||||
}
|
||||
|
||||
public function as($as)
|
||||
{
|
||||
$this->trait['as'] = $as;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user