| 1 | <?php |
||
| 21 | abstract class AbstractToast implements ToastInterface { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Content. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $content; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Type. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | private $type; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor. |
||
| 39 | * |
||
| 40 | * @param string $type The type. |
||
| 41 | * @param string $content The content. |
||
| 42 | */ |
||
| 43 | protected function __construct($type, $content) { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritDoc} |
||
| 50 | */ |
||
| 51 | public function getContent() { |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritDoc} |
||
| 57 | */ |
||
| 58 | public function getType() { |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Set the content. |
||
| 64 | * |
||
| 65 | * @param string $content The content. |
||
| 66 | * @return ToastInterface Returns this toast. |
||
| 67 | */ |
||
| 68 | protected function setContent($content) { |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Set the type. |
||
| 75 | * |
||
| 76 | * @param string $type The type. |
||
| 77 | * @return ToastInterface Returns this toast. |
||
| 78 | */ |
||
| 79 | protected function setType($type) { |
||
| 83 | } |
||
| 84 |