OWNE
extends Frame
in package
OWNE frame - Ownership frame.
The 'Ownership' frame contains information about the owner of the file. It includes a price paid, date of purchase, and the seller name.
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs the OWNE frame with given parameters.
- getDate() : string
- Returns the date of purchase.
- getEncoding() : int
- Returns the text encoding.
- getPrice() : string
- Returns the price paid.
- getSeller() : string
- Returns the seller name.
- parse() : self
- Parses the frame data.
- setDate() : self
- Sets the date of purchase.
- setEncoding() : self
- Sets the text encoding.
- setPrice() : self
- Sets the price paid.
- setSeller() : self
- Sets the seller name.
- toBytes() : string
- Converts the frame to binary data.
Properties
$date
protected
string
$date
= ''
$encoding
protected
int
$encoding
= Encoding::UTF8
$frameId
protected
string
$frameId
Hooks
protected
string
get
$price
protected
string
$price
= ''
$seller
protected
string
$seller
= ''
Methods
__construct()
Constructs the OWNE frame with given parameters.
public
__construct([string $price = '' ][, string $date = '' ][, string $seller = '' ][, int $encoding = Encoding::UTF8 ]) : mixed
Parameters
- $price : string = ''
- $date : string = ''
- $seller : string = ''
- $encoding : int = Encoding::UTF8
getDate()
Returns the date of purchase.
public
getDate() : string
Return values
stringgetEncoding()
Returns the text encoding.
public
getEncoding() : int
Return values
intgetPrice()
Returns the price paid.
public
getPrice() : string
Return values
stringgetSeller()
Returns the seller name.
public
getSeller() : string
Return values
stringparse()
Parses the frame data.
public
parse(string $frameData) : self
Parameters
- $frameData : string
Return values
selfsetDate()
Sets the date of purchase.
public
setDate(string $date) : self
Parameters
- $date : string
Return values
selfsetEncoding()
Sets the text encoding.
public
setEncoding(int $encoding) : self
Parameters
- $encoding : int
Return values
selfsetPrice()
Sets the price paid.
public
setPrice(string $price) : self
Parameters
- $price : string
Return values
selfsetSeller()
Sets the seller name.
public
setSeller(string $seller) : self
Parameters
- $seller : string
Return values
selftoBytes()
Converts the frame to binary data.
public
toBytes() : string