| 1 | <?php |
||
| 7 | trait QueuesMacros |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $method |
||
| 11 | * @param array $params |
||
| 12 | * |
||
| 13 | * @return mixed |
||
| 14 | */ |
||
| 15 | abstract protected function callMacro($method, array $params = []); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param Buildable $buildable |
||
| 19 | */ |
||
| 20 | abstract protected function queue(Buildable $buildable); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Intercept the Macro call and queue the result if it's a Buildable object. |
||
| 24 | * |
||
| 25 | * @param string $method |
||
| 26 | * @param array $args |
||
| 27 | * |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | protected function queueMacro($method, $args) |
||
| 40 | } |
||
| 41 |