12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace crmeb\traits;
- use app\Request;
- trait MacroTrait
- {
-
- public function getMacro(string $name, $default = null)
- {
- return $this->request->hasMacro($name) ? $this->request->{$name}() : $default;
- }
- }
|