Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.27 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * @ORM\Entity
  9.  * @ORM\Table(name="location")
  10.  */
  11. class Location
  12. {
  13.     /**
  14.      * @ORM\Column(type="integer")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      *
  18.      * @var integer
  19.      */
  20.     private $id;
  21.  
  22.     /**
  23.      * @ORM\Column(type="decimal", precision=11, scale=8)
  24.      *
  25.      * @var string
  26.      * NOTE: Decimal values retrieved from the database are always converted to PHP’s string type or null if no data is present.
  27.      */
  28.     private $latitude;
  29.  
  30.     /**
  31.      * @ORM\Column(type="decimal", precision=11, scale=8)
  32.      *
  33.      * @var string
  34.      * NOTE: Decimal values retrieved from the database are always converted to PHP’s string type or null if no data is present.
  35.      */
  36.     private $longitude;
  37.  
  38.     /**
  39.      * @ORM\Column(type="string", length=100)
  40.      *
  41.      * @var string
  42.      */
  43.     private $userDefinedString;
  44.  
  45.     /**
  46.      * @ORM\Column(type="string", length=100, nullable=true)
  47.      *
  48.      * @var string
  49.      */
  50.     private $computedString;
  51.    
  52.     public function __toString() {
  53.         return $this->userDefinedString;
  54.     }
  55.    
  56.     /**
  57.      * @param string $userDefinedString
  58.      * @param string $latitude
  59.      * @param string $longitude
  60.      */
  61.     public function __construct($userDefinedString = '', $latitude = '', $longitude = '') {
  62.         $this->userDefinedString = $userDefinedString;
  63.         $this->latitude = $latitude;
  64.         $this->longitude = $longitude;
  65.     }
  66.    
  67.     /**
  68.      * Get id
  69.      *
  70.      * @return integer
  71.      */
  72.     public function getId() {
  73.         return $this->id;
  74.     }
  75.  
  76.     /**
  77.      * Set latitude
  78.      *
  79.      * @param string $latitude
  80.      * @return Location
  81.      */
  82.     public function setLatitude($latitude) {
  83.         $this->latitude = $latitude;
  84.  
  85.         return $this;
  86.     }
  87.  
  88.     /**
  89.      * Get latitude
  90.      *
  91.      * @return string
  92.      */
  93.     public function getLatitude() {
  94.         return $this->latitude;
  95.     }
  96.  
  97.     /**
  98.      * Set longitude
  99.      *
  100.      * @param string $longitude
  101.      * @return Location
  102.      */
  103.     public function setLongitude($longitude) {
  104.         $this->longitude = $longitude;
  105.  
  106.         return $this;
  107.     }
  108.  
  109.     /**
  110.      * Get longitude
  111.      *
  112.      * @return string
  113.      */
  114.     public function getLongitude() {
  115.         return $this->longitude;
  116.     }
  117.  
  118.     /**
  119.      * Set userDefinedString
  120.      *
  121.      * @param string $userDefinedString
  122.      * @return Location
  123.      */
  124.     public function setUserDefinedString($userDefinedString) {
  125.         $this->userDefinedString = $userDefinedString;
  126.  
  127.         return $this;
  128.     }
  129.  
  130.     /**
  131.      * Get userDefinedString
  132.      *
  133.      * @return string
  134.      */
  135.     public function getUserDefinedString() {
  136.         return $this->userDefinedString;
  137.     }
  138.  
  139.     /**
  140.      * Set computedString
  141.      *
  142.      * @param string $computedString
  143.      * @return Location
  144.      */
  145.     public function setComputedString($computedString) {
  146.         $this->computedString = $computedString;
  147.  
  148.         return $this;
  149.     }
  150.  
  151.     /**
  152.      * Get computedString
  153.      *
  154.      * @return string
  155.      */
  156.     public function getComputedString() {
  157.         return $this->computedString;
  158.     }
  159.  
  160. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement