summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php')
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php b/plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php
index 04c1a4c9..856f22f5 100644
--- a/plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php
+++ b/plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php
@@ -1,4 +1,5 @@
-<?php
+<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
+// phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file.
/**
* Sitemaps (per the protocol) are essentially lists of XML fragments;
* lists which are subject to size constraints. The Jetpack_Sitemap_Buffer_Video
@@ -15,7 +16,13 @@
* @since 5.3.0
*/
class Jetpack_Sitemap_Buffer_Video extends Jetpack_Sitemap_Buffer {
-
+ /**
+ * Jetpack_Sitemap_Buffer_Video constructor.
+ *
+ * @param int $item_limit The maximum size of the buffer in items.
+ * @param int $byte_limit The maximum size of the buffer in bytes.
+ * @param string $time The initial datetime of the buffer. Must be in 'YYYY-MM-DD hh:mm:ss' format.
+ */
public function __construct( $item_limit, $byte_limit, $time = '1970-01-01 00:00:00' ) {
parent::__construct( $item_limit, $byte_limit, $time );
@@ -31,6 +38,9 @@ class Jetpack_Sitemap_Buffer_Video extends Jetpack_Sitemap_Buffer {
);
}
+ /**
+ * Returns a DOM element that contains all video sitemap elements.
+ */
protected function get_root_element() {
if ( ! isset( $this->root ) ) {