Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class ConditionsFacade |
||
6 | { |
||
7 | private $methods = []; |
||
8 | |||
9 | public function _call($method, $param) |
||
10 | { |
||
11 | if (isset($this->methods[$method])) { |
||
12 | return app()->call($this->methods[$method], $param); |
||
13 | } |
||
14 | |||
15 | throw new \BadMethodCallException($method.' does not exists as a condition'); |
||
16 | } |
||
17 | |||
18 | public function define($methodName, $callable) |
||
21 | } |
||
22 | } |
||
23 |