1 | <?php |
||
15 | trait NotifyTrait |
||
16 | { |
||
17 | /** |
||
18 | * @param bool $withDataSet |
||
19 | * @return string |
||
20 | */ |
||
21 | abstract public function getName($withDataSet = true); |
||
22 | |||
23 | /** |
||
24 | * @return \PHPWebDriver_WebDriverSession |
||
25 | */ |
||
26 | abstract protected function getSession(); |
||
27 | |||
28 | /** |
||
29 | * @param string $msg |
||
30 | * @return $this |
||
31 | */ |
||
32 | protected function notifyInfo($msg) |
||
37 | |||
38 | /** |
||
39 | * @param string $msg |
||
40 | * @return $this |
||
41 | */ |
||
42 | protected function notifyError($msg) |
||
47 | |||
48 | /** |
||
49 | * @param string $msg |
||
50 | * @param int $timeout |
||
51 | * @param string $type |
||
52 | * @return $this |
||
53 | */ |
||
54 | protected function debugNotify($msg, $timeout = 2000, $type = 'info') |
||
65 | } |
||
66 |