Bånder

FormattedLibraryStats
in package
implements JsonSerializable

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$libraryName  : string
$totalAlbums  : string
$totalArtists  : string
$totalDuration  : string
$totalGenres  : string
$totalSize  : string
$totalSongs  : string

Methods

__construct()  : mixed
fromRawStats()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(string $totalSongs, string $totalAlbums, string $totalArtists, string $totalGenres, string $totalDuration, string $totalSize, string $libraryName) : mixed
Parameters
$totalSongs : string
$totalAlbums : string
$totalArtists : string
$totalGenres : string
$totalDuration : string
$totalSize : string
$libraryName : string

fromRawStats()

public static fromRawStats(LibraryStats $stats, callable $formatDuration, callable $formatBytes) : self
Parameters
$stats : LibraryStats
$formatDuration : callable
$formatBytes : callable
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results