Heystack\Ecommerce\Locale\Country
Class Country
- Author: Cam Spiers <cameron@heyday.co.nz>
Synopsis
class Country
implements
CountryInterface,ViewableDataInterface
{
- // methods
- public void __construct()
- public Identifier getIdentifier()
- public string getName()
- public string getCountryCode()
- public bool isDefault()
- public array getDynamicMethods()
- public array getCastings()
Hierarchy
Implements
- Heystack\Ecommerce\Locale\Interfaces\CountryInterface
- Heystack\Core\ViewableData\ViewableDataInterface
Members
protected
- $code — string
- $default — Heystack\Ecommerce\Locale\bool
- $name — string
Methods
public
- __construct()
- getCastings() — Returns an array of SilverStripe DBField castings keyed by field name
- getCountryCode() — Returns the country code of the country object
- getDynamicMethods() — Defines what methods the implementing class implements dynamically through __get and __set
- getIdentifier() — Returns a unique identifier
- getName() — Returns the name of the country object
- isDefault() — Returns a boolean indicating whether this is the default country