| 1 | <?php |
||
| 17 | abstract class AbstractFormatter implements FormatterInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var ContainerInterface |
||
| 21 | */ |
||
| 22 | protected $container; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Sets the dependency container that the formatter will use. |
||
| 26 | * |
||
| 27 | * @param ContainerInterface $container |
||
| 28 | */ |
||
| 29 | 3 | public function setContainer(ContainerInterface $container) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Gets the current dependency container. |
||
| 36 | * |
||
| 37 | * @return ContainerInterface |
||
| 38 | */ |
||
| 39 | 3 | public function getContainer(): ContainerInterface |
|
| 43 | } |
||
| 44 |