@@ -66,12 +66,12 @@ public function get_version(): string {
6666 *
6767 * @since 1.0.0
6868 *
69- * @param bool $use_min_if_available (Unused) Use the minified version of the asset if available.
69+ * @param bool $_unused (Unused) Use the minified version of the asset if available.
7070 *
7171 * @return string
7272 * @throws LogicException If the URL has a placeholder but no version is provided.
7373 */
74- public function get_url ( bool $ use_min_if_available = true ): string {
74+ public function get_url ( bool $ _unused = true ): string {
7575 $ has_version = null !== $ this ->version ;
7676 if ( ! $ has_version && $ this ->url_has_placeholder ( $ this ->url ) ) {
7777 throw new LogicException ( 'A URL with a placeholder must have a version provided. ' );
@@ -126,4 +126,109 @@ protected function get_formatted_url() {
126126 protected function url_has_placeholder ( string $ url ): bool {
127127 return false !== strpos ( $ url , '%s ' );
128128 }
129+
130+ // ---------------------------------------------
131+ // NO-OP or UNUSED METHODS
132+ // ---------------------------------------------
133+
134+ /**
135+ * Get the asset asset file path.
136+ *
137+ * @return string
138+ */
139+ public function get_asset_file_path (): string {
140+ return '' ;
141+ }
142+
143+ /**
144+ * Get the asset min path.
145+ *
146+ * @return string
147+ */
148+ public function get_min_path (): string {
149+ return '' ;
150+ }
151+
152+ /**
153+ * Get the asset min path.
154+ *
155+ * @return string
156+ */
157+ public function get_path (): string {
158+ return '' ;
159+ }
160+
161+ /**
162+ * Gets the root path for the resource.
163+ *
164+ * @return ?string
165+ */
166+ public function get_root_path (): ?string {
167+ return '' ;
168+ }
169+
170+ /**
171+ * Get the asset translation path.
172+ *
173+ * @return string
174+ */
175+ public function get_translation_path (): string {
176+ return '' ;
177+ }
178+
179+ /**
180+ * Get the asset's full path - considering if minified exists.
181+ *
182+ * @param bool $_unused
183+ *
184+ * @return string
185+ */
186+ public function get_full_resource_path ( bool $ _unused = true ): string {
187+ return $ this ->get_url ( $ _unused );
188+ }
189+
190+ /**
191+ * Set the asset file path for the asset.
192+ *
193+ * @param string $path The partial path to the asset.
194+ *
195+ * @return static
196+ */
197+ public function set_asset_file ( string $ path ) {
198+ return $ this ;
199+ }
200+
201+ /**
202+ * Set the directory where asset should be retrieved.
203+ *
204+ * @param ?string $path The path to the minified file.
205+ * @param ?bool $prefix Whether to prefix files automatically by type (e.g. js/ for JS). Defaults to true.
206+ *
207+ * @return $this
208+ */
209+ public function set_path ( ?string $ path = null , $ prefix = null ) {
210+ return $ this ;
211+ }
212+
213+ /**
214+ * Set the directory where min files should be retrieved.
215+ *
216+ * @param ?string $path The path to the minified file.
217+ *
218+ * @return $this
219+ */
220+ public function set_min_path ( ?string $ path = null ) {
221+ return $ this ;
222+ }
223+
224+ /**
225+ * Set whether or not to use an .asset.php file.
226+ *
227+ * @param boolean $_unused Whether to use an .asset.php file.
228+ *
229+ * @return self
230+ */
231+ public function use_asset_file ( bool $ _unused = true ): self {
232+ return $ this ;
233+ }
129234}
0 commit comments