Xuanwo commented on code in PR #2782:
URL:
https://github.com/apache/incubator-opendal/pull/2782#discussion_r1286733561
##########
bindings/php/opendal-php.stubs.php:
##########
@@ -20,6 +20,111 @@
// Stubs for opendal-php
-namespace {
- function debug(): string {}
+namespace OpenDAL {
+ class Operator {
+ public function __construct(string $scheme_str, array $config) {}
+
+ /**
+ * Write bytes into given path.
+ */
+ public function write(string $path, string $content): mixed {}
+
+ /**
+ * Read the whole path into bytes.
+ */
+ public function read(string $path): string {}
+
+ /**
+ * Check if this path exists or not.
+ */
+ public function is_exist(string $path): int {}
+
+ /**
+ * Get current path's metadata **without cache** directly.
+ *
+ * # Notes
+ *
+ * Use `stat` if you:
+ *
+ * - Want detect the outside changes of path.
+ * - Don't want to read from cached metadata.
+ */
+ public function stat(string $path): \OpenDAL\Metadata {}
+
+ /**
+ * Delete given path.
+ *
+ * # Notes
+ *
+ * - Delete not existing error won't return errors.
+ */
+ public function delete(string $path): mixed {}
Review Comment:
Ok, thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]