| Total Complexity | 4 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Application |
||
| 17 | { |
||
| 18 | |||
| 19 | use Notify; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | const SUCCESS = 'success'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | const FAIL = 'fail'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $method = ''; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Application constructor. |
||
| 38 | */ |
||
| 39 | 1 | public function __construct() |
|
| 40 | { |
||
| 41 | 1 | $this->setMethod(); |
|
| 42 | 1 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * __call |
||
| 46 | * |
||
| 47 | * @param $name |
||
| 48 | * @param $arguments |
||
| 49 | * |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | 1 | public function __call($name, $arguments) |
|
| 53 | { |
||
| 54 | 1 | return call_user_func([$this, $name], ...$arguments); |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * setMethod |
||
| 59 | */ |
||
| 60 | 1 | protected function setMethod() |
|
| 65 | ]); |
||
| 66 | 1 | } |
|
| 67 | |||
| 68 | /** |
||
| 69 | * verify |
||
| 70 | * |
||
| 71 | * @param mixed $data |
||
| 72 | * |
||
| 73 | * @return bool |
||
| 74 | * |
||
| 75 | * @throws Exceptions\InvalidArgumentException |
||
| 76 | */ |
||
| 77 | public function verify($data = null) |
||
| 80 | } |
||
| 81 | } |
||
| 82 |