![]() |
- Developper API
2.0.5
|
The Variety class is a data structure that contains information about variety of grape (or "cepage" in french). Those objects are usually embedded inside Wine object. More...
Public Member Functions | |
__construct ($name, $amount) | |
Variety constructor. | |
getName () | |
Returns the variety's name or false if empty. | |
getAmount () | |
Returns the variety's amount or false if empty. | |
Static Public Member Functions | |
static | getVarietyFromSXMLElement ($node) |
Build a Variety object from a SimpleXMLElement node. It may return false if the node doesn t contain a variety. | |
static | isSXMLNodeProperty ($node) |
Check whether a node is acceptable to get a Variety from. |
The Variety class is a data structure that contains information about variety of grape (or "cepage" in french). Those objects are usually embedded inside Wine object.
__construct | ( | $ | name, |
$ | amount | ||
) |
Variety constructor.
String | name |
String | amount |
Definition at line 27 of file Variety.php.
getAmount | ( | ) |
Returns the variety's amount or false if empty.
Definition at line 46 of file Variety.php.
getName | ( | ) |
Returns the variety's name or false if empty.
Definition at line 37 of file Variety.php.
static getVarietyFromSXMLElement | ( | $ | node | ) | [static, final] |
Build a Variety object from a SimpleXMLElement node. It may return false if the node doesn t contain a variety.
SimpleXmlElement | node |
Definition at line 56 of file Variety.php.
static isSXMLNodeProperty | ( | $ | node | ) | [static, final] |
Check whether a node is acceptable to get a Variety from.
SimpleXmlElement | node |
Definition at line 86 of file Variety.php.