/** Retrieves the trimmed text content of one or more DOM elements based on an XPath query, optionally matching a pattern
*
*
* Returns null if no suitable nodes were found
*
*
* @param string $query The XPath query of the nodes to return
* @param string|null $pattern The pattern to optionally filter matches with. The pattern should not include delimiters or anchors and is always case-insensitive
* @param bool|null $multi Whether to return multiple results as an array (true) or one result as a string (false, default)
* @param \DOMNode $context The context node for the XPath query
/** Retrieves and parses a date from one or more DOM elements based on an XPath query
*
* Returns null if no suitable nodes were found
*
*
* Returns null if no suitable nodes were found
*
* @param string $query The XPath query of the nodes to return
* @param bool|null $mode Whether to return the first valid date found (DATE_ANY), the earliest chronologically (DATE_EARLIEST), latest chronologically (DATE_LATEST), or all valid dates (DAATE_ALL) in a sorted array
* @param \DOMNode $context The context node for the XPath query
/** Fetches the schedule interval from an RSS feed; this is necessarily approximate:
*
*
* The interval is defined in the syndication RSS extension as fractions of a period, but PHP only supports integer intervals, so we perform integer divison on the nearest subdivision of a period, returning at least one.
*
*
* For example, "four times monthly" first assumes a month is 30 days, and divides this by four to yield seven days.
*/
protected function getSchedIntervalRss1(): ?\DateInterval {
/** @var bool $expired Whether the feed has ceased publishing. In some formats this can be an explicit flag, while in others it can be derived from scheduling data */
public $expired;
/** @var int $skip A bitfield representing days and hours during which a feed will not be published.
*
* The bits are arranged such that the UTC hours of the day (starting with midnight) occupy the 24 least
/** @var int $skip A bitfield representing days and hours during which a feed will not be published.
*
* The bits are arranged such that the UTC hours of the day (starting with midnight) occupy the 24 least
* significant bits, followed by the days of the week starting with Monday. Thus the following number:
*
*
* `0b1100000111111100000000111111111`
*
* Signifies that the feed will not be published on Saturday and Sunday, nor outside the hours 09:00-04:00
*
* Signifies that the feed will not be published on Saturday and Sunday, nor outside the hours 09:00-04:00