plugin_directory . self::ASSET_PATH ); } public function asset(): BuildAsset { $description = require $this->plugin_directory . self::ASSET_PATH; return BuildAsset::from_description( $description ); } public function script_url(): string { return plugins_url( self::SCRIPT_PATH, $this->plugin_file ); } public function stylesheet_url( BuildAsset $asset ): string { return add_query_arg( self::VERSION_ARGUMENT, $asset->version, plugins_url( self::STYLESHEET_PATH, $this->plugin_file ) ); } }