Total Complexity | 12 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait AttachTrait |
||
8 | { |
||
9 | /** |
||
10 | * 属性数组 |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $attribute=[]; |
||
15 | |||
16 | public function addAttribute(array $value) |
||
17 | { |
||
18 | $this->attribute = array_merge($this->attribute, $value); |
||
19 | } |
||
20 | |||
21 | protected function analyse(array $context) |
||
33 | } |
||
34 | |||
35 | public function interpolate(string $message, array $context, array $attribute) |
||
58 |