MVIN
extends TextFrame
in package
MVIN frame - Movement number.
The 'Movement number' frame is a numeric string containing the movement number of the audio-file in a larger work. This may be extended with a "/" character and a numeric string containing the total number of movements in the work. E.g. "2/5".
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs the MVIN frame with given parameters.
- getEncoding() : int
- Returns the text encoding.
- getMovement() : string
- Returns the movement number.
- getText() : string
- Returns the text content.
- parse() : self
- Parses the frame data.
- setEncoding() : self
- Sets the text encoding.
- setMovement() : self
- Sets the movement number.
- setText() : self
- Sets the text content.
- toBytes() : string
- Converts the frame to binary data.
Properties
$encoding
protected
int
$encoding
= Encoding::UTF8
$frameId
protected
string
$frameId
Hooks
protected
string
get
$text
protected
string
$text
= ''
Methods
__construct()
Constructs the MVIN frame with given parameters.
public
__construct([string $movement = '' ][, int $encoding = Encoding::UTF8 ]) : mixed
Parameters
- $movement : string = ''
- $encoding : int = Encoding::UTF8
getEncoding()
Returns the text encoding.
public
getEncoding() : int
Return values
intgetMovement()
Returns the movement number.
public
getMovement() : string
Return values
stringgetText()
Returns the text content.
public
getText() : string
Return values
stringparse()
Parses the frame data.
public
parse(string $frameData) : self
Parameters
- $frameData : string
Return values
selfsetEncoding()
Sets the text encoding.
public
setEncoding(int $encoding) : self
Parameters
- $encoding : int
Return values
selfsetMovement()
Sets the movement number.
public
setMovement(string $movement) : self
Parameters
- $movement : string
Return values
selfsetText()
Sets the text content.
public
setText(string $text) : self
Parameters
- $text : string
Return values
selftoBytes()
Converts the frame to binary data.
public
toBytes() : string