Documentation

Factory
in package
implements FactoryInterface

FinalYes

Factory for creating Track instances.

Table of Contents

Interfaces

FactoryInterface
Factory for creating Track instances.

Properties

$controller  : ControllerInterface

Methods

__construct()  : mixed
Create an instance of the Factory class.
createFromUri()  : TrackInterface
Create a new Track instance from a URI.
createFromXml()  : TrackInterface
Create a new Track instance from a URI.
guessTrackClass()  : TrackInterface>
Get the name of the Track class that represents a URI.

Properties

Methods

createFromUri()

Create a new Track instance from a URI.

public createFromUri(string $uri) : TrackInterface
Parameters
$uri : string

The URI of the track

Return values
TrackInterface

createFromXml()

Create a new Track instance from a URI.

public createFromXml(ElementInterface $xml) : TrackInterface
Parameters
$xml : ElementInterface

The xml element representing the track meta data.

Return values
TrackInterface

guessTrackClass()

Get the name of the Track class that represents a URI.

private guessTrackClass(string $uri) : TrackInterface>
Parameters
$uri : string

The URI of the track

Return values
TrackInterface>
On this page

Search results