MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeText-parser / MyTrait

Class MyTrait

tests/test_parser/test_sample/php_test_sample.php:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99trait 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected