| Total Complexity | 11 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait AttachTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * 属性数组 |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $attribute = []; |
||
| 18 | |||
| 19 | public function addAttribute(string $name, $value) |
||
| 20 | { |
||
| 21 | $this->attribute[$name] = $value; |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function isReplacedObj($val): bool |
||
| 28 | } |
||
| 29 | |||
| 30 | public function interpolate(string $message, array $context, array $attribute) |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get 属性数组 |
||
| 55 | * |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | public function getAttribute() |
||
| 63 |