public function getImageType()
    {
        $this->imageType = ($this->imageType === 'jpg') ? 'jpeg' : $this->imageType;
        $this->imageType = ( in_array($this->imageType, $this->imageTypes) ) ? $this->imageType : 'png';

        return $this->imageType;
    }
public function getImageType()
    {
        $this->imageType = ($this->imageType === 'jpg') ? 'jpeg' : $this->imageType;
        $this->imageType = ( in_array($this->imageType, $this->imageTypes) ) ? $this->imageType : 'png';

        return $this->imageType;
    }
public function getImageType ( ) { $ this -> imageType = ( $ this -> imageType === 'jpg' ) ? 'jpeg' : $ this -> imageType ; $ this -> imageType = ( in_array ( $ this -> imageType , $ this -> imageTypes ) ) ? $ this -> imageType : 'png' ; return $ this -> imageType ; }
Get image type

@return string
Get image type