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