Skip to content

Commit 6861a61

Browse files
committed
feat: Added bundle getter
1 parent 8ad4dc1 commit 6861a61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Resources/File.php

+9
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ public function __construct(
5454
$this->id = $id ?? \pathinfo( $this->src, \PATHINFO_FILENAME );
5555
}
5656

57+
/**
58+
* Get the bundle instance.
59+
*
60+
* @return XWP_Asset_Bundle
61+
*/
62+
public function bundle(): XWP_Asset_Bundle {
63+
return $this->bundle;
64+
}
65+
5766
/**
5867
* Get the WP_Filesystem instance.
5968
*

0 commit comments

Comments
 (0)