| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\OpenSpout\Writer\Common\Manager\Style; |
| 4 |
|
| 5 |
use FluentCart\OpenSpout\Common\Entity\Cell; |
| 6 |
use FluentCart\OpenSpout\Common\Entity\Style\Style; |
| 7 |
/** |
| 8 |
* Interface StyleHManagernterface. |
| 9 |
*/ |
| 10 |
interface StyleManagerInterface |
| 11 |
{ |
| 12 |
/** |
| 13 |
* Registers the given style as a used style. |
| 14 |
* Duplicate styles won't be registered more than once. |
| 15 |
* |
| 16 |
* @param Style $style The style to be registered |
| 17 |
* |
| 18 |
* @return Style the registered style, updated with an internal ID |
| 19 |
*/ |
| 20 |
public function registerStyle($style); |
| 21 |
/** |
| 22 |
* Apply additional styles if the given row needs it. |
| 23 |
* Typically, set "wrap text" if a cell contains a new line. |
| 24 |
* |
| 25 |
* @return PossiblyUpdatedStyle The eventually updated style |
| 26 |
*/ |
| 27 |
public function applyExtraStylesIfNeeded(Cell $cell) : PossiblyUpdatedStyle; |
| 28 |
} |
| 29 |
|