public function toArray(): array
    {
        return [
            "clientFilename" => $this->getClientFilename(),
            "unverifiedContentType" => $this->error ? "" : $this->getContentType(true),
            "verifiedContentType" => $this->error ? "" : $this->getContentType(),
            "size" => $this->error ? 0 : $this->getSize(),
            "tempPath" => $this->error ? "" : $this->getTempPath(),
            "error" => $this->error ? $this->error->getMessage() : "",
        ];
    }
public function toArray(): array
    {
        return [
            "clientFilename" => $this->getClientFilename(),
            "unverifiedContentType" => $this->error ? "" : $this->getContentType(true),
            "verifiedContentType" => $this->error ? "" : $this->getContentType(),
            "size" => $this->error ? 0 : $this->getSize(),
            "tempPath" => $this->error ? "" : $this->getTempPath(),
            "error" => $this->error ? $this->error->getMessage() : "",
        ];
    }
public function toArray ( ) : array { return [ "clientFilename" => $ this -> getClientFilename ( ) , "unverifiedContentType" => $ this -> error ? "" : $ this -> getContentType ( true ) , "verifiedContentType" => $ this -> error ? "" : $ this -> getContentType ( ) , "size" => $ this -> error ? 0 : $ this -> getSize ( ) , "tempPath" => $ this -> error ? "" : $ this -> getTempPath ( ) , "error" => $ this -> error ? $ this -> error -> getMessage ( ) : "" , ] ; }
Get an array representation of this object

@return array
Get an array representation of this object