\duncan3dc\MetaAudio\ModulesModuleInterface

Interface that all modules must implement to read/write tags.

Summary

Methods
Constants
open()
save()
revert()
getTitle()
getTrackNumber()
getArtist()
getAlbum()
getYear()
setTitle()
setTrackNumber()
setArtist()
setAlbum()
setYear()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

open()

open(\duncan3dc\MetaAudio\Interfaces\FileInterface  $file) : $this

Load the passed file.

Parameters

\duncan3dc\MetaAudio\Interfaces\FileInterface $file

The file to read

Returns

$this

save()

save() : $this

Save the changes currently pending.

Returns

$this

revert()

revert() : $this

Throw away any pending changes.

Returns

$this

getTitle()

getTitle() : string

Get the track title.

Returns

string

getTrackNumber()

getTrackNumber() : integer

Get the track number.

Returns

integer

getArtist()

getArtist() : string

Get the artist name.

Returns

string

getAlbum()

getAlbum() : string

Get the album name.

Returns

string

getYear()

getYear() : integer

Get the release year.

Returns

integer

setTitle()

setTitle(string  $title) : $this

Set the track title.

Parameters

string $title

The title name

Returns

$this

setTrackNumber()

setTrackNumber(integer  $track) : $this

Set the track number.

Parameters

integer $track

The track number

Returns

$this

setArtist()

setArtist(string  $artist) : $this

Set the artist name.

Parameters

string $artist

The artist name

Returns

$this

setAlbum()

setAlbum(string  $album) : $this

Set the album name.

Parameters

string $album

The album name

Returns

$this

setYear()

setYear(integer  $year) : $this

Set the release year.

Parameters

integer $year

The release year

Returns

$this