We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hasFile()
GenerateThumbnail
1 parent 62f8441 commit 7c594e3Copy full SHA for 7c594e3
wcfsetup/install/files/lib/event/file/GenerateThumbnail.class.php
@@ -23,6 +23,15 @@ public function __construct(
23
public readonly ThumbnailFormat $thumbnailFormat,
24
) {}
25
26
+ /**
27
+ * Returns true if a file has already been set and no further files are
28
+ * being accepted.
29
+ */
30
+ public function hasFile(): bool
31
+ {
32
+ return isset($this->pathname);
33
+ }
34
+
35
/**
36
* Sets the pathname of the generated image unless it has already been set
37
* in which case the call will throw an exception. You must check the result
0 commit comments