1 | <?php |
||
17 | abstract class ConvertNotices |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var CommandHandlerNotices $notices |
||
22 | */ |
||
23 | private $notices; |
||
24 | |||
25 | /** |
||
26 | * if set to true, then errors will be thrown as exceptions |
||
27 | * |
||
28 | * @var boolean $throw_exceptions |
||
29 | */ |
||
30 | private $throw_exceptions; |
||
31 | |||
32 | |||
33 | |||
34 | /** |
||
35 | * ConvertNotices constructor. |
||
36 | * |
||
37 | * @param CommandHandlerNotices $notices |
||
38 | * @param bool $throw_exceptions |
||
39 | */ |
||
40 | public function __construct(CommandHandlerNotices $notices, $throw_exceptions = false) |
||
45 | |||
46 | |||
47 | |||
48 | /** |
||
49 | * @return CommandHandlerNotices |
||
50 | */ |
||
51 | public function getNotices() |
||
55 | |||
56 | |||
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function getThrowExceptions() |
||
65 | |||
66 | |||
67 | |||
68 | /** |
||
69 | * Converts CommandHandlerNotice objects into other format |
||
70 | */ |
||
71 | abstract public function process(); |
||
72 | |||
73 | |||
74 | } |
||
75 |