source = $source; $this->style = $this->setNewStyle(new ImageStyle(), $style, true); $this->icon = realpath(__DIR__ . "/../resources/{$ext}.png"); return $this; } else { throw new InvalidObjectException(); } } /** * Get object source * * @return string */ public function getSource() { return $this->source; } /** * Get object style * * @return \PhpOffice\PhpWord\Style\Image */ public function getStyle() { return $this->style; } /** * Get object icon * * @return string */ public function getIcon() { return $this->icon; } /** * Get image relation ID * * @return int */ public function getImageRelationID() { return $this->imageRelationID; } /** * Set Image Relation ID. * * @param int $rID * @return void */ public function setImageRelationID($rID) { $this->imageRelationID = $rID; } /** * Get Object ID * * @return int * @deprecated 0.10.0 * @codeCoverageIgnore */ public function getObjectID() { return $this->relationID + 1325353440; } /** * Set Object ID * * @param int $objID * @deprecated 0.10.0 * @codeCoverageIgnore */ public function setObjectID($objID) { $this->relationID = $objID; } }