| 1 | <?php |
||
| 17 | abstract class NoticeConverter implements NoticeConverterInterface |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var NoticesContainerInterface $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 | * NoticeConverter constructor. |
||
| 36 | * |
||
| 37 | * @param bool $throw_exceptions |
||
| 38 | */ |
||
| 39 | public function __construct($throw_exceptions = false) |
||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * @return NoticesContainerInterface |
||
| 48 | */ |
||
| 49 | public function getNotices() |
||
| 53 | |||
| 54 | |||
| 55 | |||
| 56 | /** |
||
| 57 | * @param NoticesContainerInterface $notices |
||
| 58 | */ |
||
| 59 | protected function setNotices(NoticesContainerInterface $notices) |
||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | /** |
||
| 67 | * @return bool |
||
| 68 | */ |
||
| 69 | public function getThrowExceptions() |
||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | /** |
||
| 77 | * @param bool $throw_exceptions |
||
| 78 | */ |
||
| 79 | public function setThrowExceptions($throw_exceptions) |
||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | /** |
||
| 87 | * @return void; |
||
| 88 | */ |
||
| 89 | public function clearNotices() |
||
| 93 | |||
| 94 | |||
| 95 | } |
||
| 96 |