| 97 | } |
| 98 | |
| 99 | trait MyTrait { |
| 100 | |
| 101 | public function setBackgroundImage(Drawing $objDrawing): self |
| 102 | { |
| 103 | if (!array_key_exists($objDrawing->getType(), Drawing::IMAGE_TYPES_CONVERTION_MAP)) { |
| 104 | throw new PhpSpreadsheetException('Unsupported image type in comment background. Supported types: PNG, JPEG, BMP, GIF.'); |
| 105 | } |
| 106 | $this->backgroundImage = $objDrawing; |
| 107 | |
| 108 | return $this; |
| 109 | } |
| 110 | |
| 111 | } |
| 112 |
nothing calls this directly
no outgoing calls
no test coverage detected