<?php
/**
* Created by PhpStorm.
* User: apple
* Date: 29/03/19
* Time: 3:08 PM
*/
namespace App\AppBundle\MainBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use JsonSerializable;
/**
* AddOns
*
* @ORM\Entity
* @ORM\Table(name="ps_add_spot_loc_detail")
* @ORM\HasLifecycleCallbacks()
*/
class PS_Add_Spot_Loc_Detail implements JsonSerializable
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=false)
* @Assert\NotBlank()
*/
private $title;
/**
* @ORM\Column(type="string", nullable=false)
* @Assert\NotBlank()
*/
private $address;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $street_name;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $street_number;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $postal_code;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $city;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $county;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $country_code;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $state;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $state_code;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $country;
/**
* @ORM\Column(type="decimal", precision=11, scale=8)
*
*/
private $latitude;
/**
* @ORM\Column(type="decimal", precision=11, scale=8)
*
*/
private $longitude;
/**
* @ORM\Column(type="string", nullable=false)
*
*/
private $spot_number;
/**
* @ORM\Column(type="string", length = 5000, nullable=false)
*
*/
private $about_spot;
/**
* @ORM\ManyToOne(targetEntity="WP_Property_Type")
* @ORM\JoinColumn(name="property_type_id", referencedColumnName="id")
*/
private $property_type;
/**
* @ORM\ManyToOne(targetEntity="WP_Parking_Type")
* @ORM\JoinColumn(name="parking_type_id", referencedColumnName="id")
*/
private $parking_type;
/**
* @ORM\ManyToOne(targetEntity="WP_Access_Type")
* @ORM\JoinColumn(name="access_type_id", referencedColumnName="id")
*/
private $access_type;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $access_type_detail;
/**
* @ORM\ManyToOne(targetEntity="WP_Max_Vehicle_Size")
* @ORM\JoinColumn(name="max_vehicle_size_id", referencedColumnName="id")
*/
private $max_vehicle_size;
/**
* @var WP_Max_Vehicle_Size_Type
* @ORM\ManyToOne(targetEntity="WP_Max_Vehicle_Size_Type")
* @ORM\JoinColumn(name="max_vehicle_size_type_id", referencedColumnName="id")
*/
private $max_vehicle_size_type;
/**
* @ORM\Column(type="string", length=1000, nullable=false)
*
*/
private $special_tips;
/**
* @ORM\Column(type="boolean", nullable=false)
*
*/
private $is_completed;
/**
* @ORM\Column(type="boolean", nullable=true)
*
*/
private $is_spot_saved;
/**
* One product has many features. This is the inverse side.
* @ORM\OneToMany(targetEntity="PS_Add_Spot_Loc_Detail_Amenities", mappedBy="ps_add_spot_loc_detail")
*/
private $ps_add_spot_loc_detail_amenities;
/**
* One product has many features. This is the inverse side.
* @ORM\OneToMany(targetEntity="PS_Add_Spot_Loc_Detail_Near_By", mappedBy="ps_add_spot_loc_detail")
*/
private $ps_add_spot_loc_detail_near_by;
/**
* One Cart has One Customer.
* @ORM\OneToOne(targetEntity="PS_Add_Spot", inversedBy="ps_add_spot_loc_detail")
* @ORM\JoinColumn(name="ps_add_spot_id", referencedColumnName="id")
*/
private $ps_add_spot;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $parking_type_other;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $property_type_other;
/**
* @ORM\Column(type="string", nullable=true)
*
*/
private $access_type_other;
/**
* @ORM\Column(type="boolean", nullable=true)
*
*/
private $have_electric_charger = false;
/**
* @var WP_Electric_Charger_Type
* @ORM\ManyToOne(targetEntity="WP_Electric_Charger_Type")
* @ORM\JoinColumn(name="electric_charger_type_id", referencedColumnName="id")
*/
private $electric_charger_type;
/**
* @var WP_Parking_Max_Height
* @ORM\ManyToOne(targetEntity="WP_Parking_Max_Height")
* @ORM\JoinColumn(name="parking_max_height_id", referencedColumnName="id")
*/
private $parking_max_height;
/**
* @ORM\Column(type="boolean", nullable=false)
*/
private $is_parking_spot_size_available = false;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $length;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $width;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getTitle()
{
return $this->title;
}
/**
* @param mixed $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return mixed
*/
public function getAddress()
{
return $this->address;
}
/**
* @param mixed $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return mixed
*/
public function getStreetName()
{
return $this->street_name;
}
/**
* @param mixed $street_name
*/
public function setStreetName($street_name)
{
$this->street_name = $street_name;
}
/**
* @return mixed
*/
public function getStreetNumber()
{
return $this->street_number;
}
/**
* @param mixed $street_number
*/
public function setStreetNumber($street_number)
{
$this->street_number = $street_number;
}
/**
* @return mixed
*/
public function getPostalCode()
{
return $this->postal_code;
}
/**
* @param mixed $postal_code
*/
public function setPostalCode($postal_code)
{
$this->postal_code = $postal_code;
}
/**
* @return mixed
*/
public function getCity()
{
return $this->city;
}
/**
* @param mixed $city
*/
public function setCity($city)
{
$this->city = $city;
}
/**
* @return mixed
*/
public function getCounty()
{
return $this->county;
}
/**
* @param mixed $county
*/
public function setCounty($county)
{
$this->county = $county;
}
/**
* @return mixed
*/
public function getState()
{
return $this->state;
}
/**
* @param mixed $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return mixed
*/
public function getCountry()
{
return $this->country;
}
/**
* @param mixed $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return mixed
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* @param mixed $latitude
*/
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
/**
* @return mixed
*/
public function getLongitude()
{
return $this->longitude;
}
/**
* @param mixed $longitude
*/
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
/**
* @return mixed
*/
public function getSpotNumber()
{
return $this->spot_number;
}
/**
* @param mixed $spot_number
*/
public function setSpotNumber($spot_number)
{
$this->spot_number = $spot_number;
}
/**
* @return mixed
*/
public function getAboutSpot()
{
return $this->about_spot;
}
/**
* @param mixed $about_spot
*/
public function setAboutSpot($about_spot)
{
$this->about_spot = $about_spot;
}
/**
* @return mixed
*/
public function getPropertyType()
{
return $this->property_type;
}
/**
* @param mixed $property_type
*/
public function setPropertyType($property_type)
{
$this->property_type = $property_type;
}
/**
* @return mixed
*/
public function getParkingType()
{
return $this->parking_type;
}
/**
* @param mixed $parking_type
*/
public function setParkingType($parking_type)
{
$this->parking_type = $parking_type;
}
/**
* @return mixed
*/
public function getAccessType()
{
return $this->access_type;
}
/**
* @param mixed $access_type
*/
public function setAccessType($access_type)
{
$this->access_type = $access_type;
}
/**
* @return mixed
*/
public function getAccessTypeDetail()
{
return $this->access_type_detail;
}
/**
* @param mixed $access_type_detail
*/
public function setAccessTypeDetail($access_type_detail)
{
$this->access_type_detail = $access_type_detail;
}
/**
* @return WP_Max_Vehicle_Size
*/
public function getMaxVehicleSize()
{
return $this->max_vehicle_size;
}
/**
* @param mixed $max_vehicle_size
*/
public function setMaxVehicleSize($max_vehicle_size)
{
$this->max_vehicle_size = $max_vehicle_size;
}
/**
* @return WP_Max_Vehicle_Size_Type
*/
public function getMaxVehicleSizeType()
{
return $this->max_vehicle_size_type;
}
/**
* @param WP_Max_Vehicle_Size_Type $max_vehicle_size_type
*/
public function setMaxVehicleSizeType(WP_Max_Vehicle_Size_Type $max_vehicle_size_type)
{
$this->max_vehicle_size_type = $max_vehicle_size_type;
}
/**
* @return mixed
*/
public function getSpecialTips()
{
return $this->special_tips;
}
/**
* @param mixed $special_tips
*/
public function setSpecialTips($special_tips)
{
$this->special_tips = $special_tips;
}
/**
* @return mixed
*/
public function getisCompleted()
{
return $this->is_completed;
}
/**
* @param mixed $is_completed
*/
public function setIsCompleted($is_completed)
{
$this->is_completed = $is_completed;
}
/**
* @return mixed
*/
public function getPsAddSpotLocDetailAmenities()
{
return $this->ps_add_spot_loc_detail_amenities;
}
/**
* @param mixed $ps_add_spot_loc_detail_amenities
*/
public function setPsAddSpotLocDetailAmenities($ps_add_spot_loc_detail_amenities)
{
$this->ps_add_spot_loc_detail_amenities = $ps_add_spot_loc_detail_amenities;
}
/**
* @return mixed
*/
public function getPsAddSpotLocDetailNearBy()
{
return $this->ps_add_spot_loc_detail_near_by;
}
/**
* @param mixed $ps_add_spot_loc_detail_near_by
*/
public function setPsAddSpotLocDetailNearBy($ps_add_spot_loc_detail_near_by)
{
$this->ps_add_spot_loc_detail_near_by = $ps_add_spot_loc_detail_near_by;
}
/**
* @return mixed
*/
public function getPsAddSpot()
{
return $this->ps_add_spot;
}
/**
* @param mixed $ps_add_spot
*/
public function setPsAddSpot($ps_add_spot)
{
$this->ps_add_spot = $ps_add_spot;
}
/**
* @return mixed
*/
public function getIsSpotSaved()
{
return $this->is_spot_saved;
}
/**
* @param mixed $is_spot_saved
*/
public function setIsSpotSaved($is_spot_saved)
{
$this->is_spot_saved = $is_spot_saved;
}
/**
* @return mixed
*/
public function getParkingTypeOther()
{
return $this->parking_type_other;
}
/**
* @param mixed $parking_type_other
*/
public function setParkingTypeOther($parking_type_other)
{
$this->parking_type_other = $parking_type_other;
}
/**
* @return mixed
*/
public function getPropertyTypeOther()
{
return $this->property_type_other;
}
/**
* @param mixed $property_type_other
*/
public function setPropertyTypeOther($property_type_other)
{
$this->property_type_other = $property_type_other;
}
/**
* @return mixed
*/
public function getAccessTypeOther()
{
return $this->access_type_other;
}
/**
* @param mixed $access_type_other
*/
public function setAccessTypeOther($access_type_other)
{
$this->access_type_other = $access_type_other;
}
/**
* @return mixed
*/
public function getCountryCode()
{
return $this->country_code;
}
/**
* @param mixed $country_code
*/
public function setCountryCode($country_code)
{
$this->country_code = $country_code;
}
/**
* @return mixed
*/
public function getStateCode()
{
return $this->state_code;
}
/**
* @param mixed $state_code
*/
public function setStateCode($state_code)
{
$this->state_code = $state_code;
}
/**
* @return mixed
*/
public function getHaveElectricCharger()
{
return $this->have_electric_charger;
}
/**
* @param mixed $have_electric_charger
*/
public function setHaveElectricCharger($have_electric_charger)
{
$this->have_electric_charger = $have_electric_charger;
}
/**
* @return WP_Electric_Charger_Type
*/
public function getElectricChargerType()
{
return $this->electric_charger_type;
}
/**
* @param WP_Electric_Charger_Type $electric_charger_type
*/
public function setElectricChargerType($electric_charger_type)
{
$this->electric_charger_type = $electric_charger_type;
}
/**
* @return WP_Parking_Max_Height
*/
public function getParkingMaxHeight()
{
return $this->parking_max_height;
}
/**
* @param WP_Parking_Max_Height $parking_max_height
*/
public function setParkingMaxHeight($parking_max_height)
{
$this->parking_max_height = $parking_max_height;
}
/**
* @return mixed
*/
public function getIsParkingSpotSizeAvailable()
{
return $this->is_parking_spot_size_available;
}
/**
* @param mixed $is_parking_spot_size_available
*/
public function setIsParkingSpotSizeAvailable($is_parking_spot_size_available)
{
$this->is_parking_spot_size_available = $is_parking_spot_size_available;
}
/**
* @return mixed
*/
public function getLength()
{
return $this->length;
}
/**
* @param mixed $length
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return mixed
*/
public function getWidth()
{
return $this->width;
}
/**
* @param mixed $width
*/
public function setWidth($width)
{
$this->width = $width;
}
public function jsonSerialize()
{
return array(
'id' => $this->id,
);
}
/**
* @var string $created
*
* @ORM\Column(name="created_at", type="string", nullable=false)
*/
protected $createdAt;
/**
* @var string $updated
*
* @ORM\Column(name="updated_at", type="string", nullable=false)
*/
protected $updatedAt;
public function getCreatedAt()
{
return $this->createdAt;
}
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt()
{
return $this->updatedAt;
}
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function updatedTimestamps()
{
$this->setUpdatedAt(round(microtime(true) * 1000));
if ($this->getCreatedAt() === null) {
$this->setCreatedAt(round(microtime(true) * 1000));
}
}
public function __construct() {
$this->ps_add_spot_loc_detail_amenities = new ArrayCollection();
$this->ps_add_spot_loc_detail_near_by = new ArrayCollection();
$this->setCreatedAt(round(microtime(true) * 1000));
}
}