25 parent::__construct();
35 return basename($this->path);
46 $fileName = str_replace(
' ',
'_', $fileName);
58 $exploded = explode(
'.', basename($this->path));
60 return $exploded[count($exploded) - 1];
81 public function setPath($pValue, $pVerifyFile =
true)
84 if (file_exists($pValue)) {
85 $this->path = $pValue;
87 if ($this->width == 0 && $this->height == 0) {
89 [$this->width, $this->height] = getimagesize($pValue);
92 throw new PhpSpreadsheetException(
"File $pValue not found!");
95 $this->path = $pValue;
110 parent::getHashCode() .
An exception for terminatinating execution or to throw for unit testing.
getImageIndex()
Get image index.
getIndexedFilename()
Get indexed filename (using image index).
getFilename()
Get Filename.
setPath($pValue, $pVerifyFile=true)
Set Path.
getHashCode()
Get hash code.
getExtension()
Get Extension.
__construct()
Create a new Drawing.