| Current Path : /home/emeraadmin/public_html/Classes/ |
| Current File : /home/emeraadmin/public_html/Classes/Service.php |
<?php
class Service
{
//CREATE TABLE services (
//id INT AUTO_INCREMENT PRIMARY KEY,
//name VARCHAR(255) NOT NULL,
//region VARCHAR(255) NOT NULL,
//address_line1 VARCHAR(255) DEFAULT NULL,
//address_line2 VARCHAR(255) DEFAULT NULL,
//suburb VARCHAR(255) DEFAULT NULL,
//city VARCHAR(255) DEFAULT NULL,
//state VARCHAR(255) DEFAULT NULL,
//postal_code VARCHAR(20) DEFAULT NULL,
//country VARCHAR(255) DEFAULT NULL,
//phone VARCHAR(20) DEFAULT NULL,
//on_site_location TEXT DEFAULT NULL,
//latitude VARCHAR(20) DEFAULT NULL,
//longitude VARCHAR(20) DEFAULT NULL,
//created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
//updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
//);
public $id;
public $name;
public $region;
public $address_line1;
public $address_line2;
public $suburb;
public $city;
public $state;
public $postal_code;
public $country;
public $phone;
public $on_site_location;
public $latitude;
public $longitude;
public $created_at;
public $updated_at;
/**
* @param $id
* @param $name
* @param $region
* @param $address_line1
* @param $address_line2
* @param $suburb
* @param $city
* @param $state
* @param $postal_code
* @param $country
* @param $phone
* @param $on_site_location
* @param $latitude
* @param $longitude
* @param $created_at
* @param $updated_at
*/
public function __construct($id, $name, $region, $address_line1, $address_line2, $suburb, $city, $state, $postal_code, $country, $phone, $on_site_location, $latitude, $longitude, $created_at, $updated_at)
{
$this->id = $id;
$this->name = $name;
$this->region = $region;
$this->address_line1 = $address_line1;
$this->address_line2 = $address_line2;
$this->suburb = $suburb;
$this->city = $city;
$this->state = $state;
$this->postal_code = $postal_code;
$this->country = $country;
$this->phone = $phone;
$this->on_site_location = $on_site_location;
$this->latitude = $latitude;
$this->longitude = $longitude;
$this->created_at = $created_at;
$this->updated_at = $updated_at;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name): void
{
$this->name = $name;
}
/**
* @return mixed
*/
public function getRegion()
{
return $this->region;
}
/**
* @param mixed $region
*/
public function setRegion($region): void
{
$this->region = $region;
}
/**
* @return mixed
*/
public function getAddressLine1()
{
return $this->address_line1;
}
/**
* @param mixed $address_line1
*/
public function setAddressLine1($address_line1): void
{
$this->address_line1 = $address_line1;
}
/**
* @return mixed
*/
public function getAddressLine2()
{
return $this->address_line2;
}
/**
* @param mixed $address_line2
*/
public function setAddressLine2($address_line2): void
{
$this->address_line2 = $address_line2;
}
/**
* @return mixed
*/
public function getSuburb()
{
return $this->suburb;
}
/**
* @param mixed $suburb
*/
public function setSuburb($suburb): void
{
$this->suburb = $suburb;
}
/**
* @return mixed
*/
public function getCity()
{
return $this->city;
}
/**
* @param mixed $city
*/
public function setCity($city): void
{
$this->city = $city;
}
/**
* @return mixed
*/
public function getState()
{
return $this->state;
}
/**
* @param mixed $state
*/
public function setState($state): void
{
$this->state = $state;
}
/**
* @return mixed
*/
public function getPostalCode()
{
return $this->postal_code;
}
/**
* @param mixed $postal_code
*/
public function setPostalCode($postal_code): void
{
$this->postal_code = $postal_code;
}
/**
* @return mixed
*/
public function getCountry()
{
return $this->country;
}
/**
* @param mixed $country
*/
public function setCountry($country): void
{
$this->country = $country;
}
/**
* @return mixed
*/
public function getPhone()
{
return $this->phone;
}
/**
* @param mixed $phone
*/
public function setPhone($phone): void
{
$this->phone = $phone;
}
/**
* @return mixed
*/
public function getOnSiteLocation()
{
return $this->on_site_location;
}
/**
* @param mixed $on_site_location
*/
public function setOnSiteLocation($on_site_location): void
{
$this->on_site_location = $on_site_location;
}
/**
* @return mixed
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* @param mixed $latitude
*/
public function setLatitude($latitude): void
{
$this->latitude = $latitude;
}
/**
* @return mixed
*/
public function getLongitude()
{
return $this->longitude;
}
/**
* @param mixed $longitude
*/
public function setLongitude($longitude): void
{
$this->longitude = $longitude;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* @param mixed $created_at
*/
public function setCreatedAt($created_at): void
{
$this->created_at = $created_at;
}
/**
* @return mixed
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
/**
* @param mixed $updated_at
*/
public function setUpdatedAt($updated_at): void
{
$this->updated_at = $updated_at;
}
}