getMTime(); } catch (Throwable) { // Just use current stamp for mtime. return time(); } } /** @return array */ public function toArray(): array { return [ 'title' => $this->title, 'album' => $this->albumName, 'artist' => $this->artistName, 'albumartist' => $this->albumArtistName, 'track' => $this->track, 'disc' => $this->disc, 'lyrics' => $this->lyrics, 'length' => $this->length, 'cover' => $this->cover, 'path' => $this->path, 'mtime' => $this->mTime, ]; } }