Tenth MyTotalComfort Location - TenthPres/MyTotalComfort GitHub Wiki

Tenth\MyTotalComfort\Location

Class Location

Locations appear through the Total Comfort Control interface at https://mytotalcomfortcontrol.com/portal/Locations

These typically refer to physical addresses, but could be used to distinguish between buildings in larger campuses. Locations generally have distinct street addresses.

  • Class name: Location
  • Namespace: Tenth\MyTotalComfort

Properties

$context

protected \Tenth\MyTotalComfort $context
  • Visibility: protected

$id

protected integer $id
  • Visibility: protected

$name

protected string $name
  • Visibility: protected

Methods

__construct

void Tenth\MyTotalComfort\Location::__construct(\Tenth\MyTotalComfort $tccObject, integer $id, array<mixed,mixed> $data)

Location constructor.

  • Visibility: public

Arguments

  • $tccObject Tenth\MyTotalComfort - Provide the user context through which this information is gleaned.
  • $id integer - The location ID number
  • $data array<mixed,mixed> - Data to be inserted into the Location at construction.

__toString

string Tenth\MyTotalComfort\Location::__toString()

Gets the name of the location.

  • Visibility: public

Returns

  • string - The name of the location.

getId

integer Tenth\MyTotalComfort\Location::getId()

Gets the ID number of the location.

  • Visibility: public

Returns

  • integer - The ID of the Location

getZones

array<mixed,\Tenth\MyTotalComfort\Zone> Tenth\MyTotalComfort\Location::getZones()

Get the Zones in this Location.

  • Visibility: public

Returns

  • array<mixed,\Tenth\MyTotalComfort\Zone> - THe Zones contained in the Location.