Automattic\WooCommerce\Internal\PushNotifications\DataStores
StepLogFileReader::get_filenames
The filenames that could hold one day's lines for a source: the current file and every rotation of it.
Method of the class: StepLogFileReader{}
No Hooks.
Returns
string[].
Usage
$result = StepLogFileReader::get_filenames( $source, $day ): array;
- $source(string) (required)
- The log source.
- $day(int) (required)
- A timestamp within the UTC day.
StepLogFileReader::get_filenames() StepLogFileReader::get filenames code WC 11.3.0
private static function get_filenames( string $source, int $day ): array {
$filenames = array();
for ( $rotation = self::MAX_ROTATIONS - 1; $rotation >= 0; $rotation-- ) {
$filenames[] = self::build_filename( $source, $rotation, $day );
}
$filenames[] = self::build_filename( $source, null, $day );
return $filenames;
}