Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.22 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, nullable=true)
  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, nullable=true)
  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.     }
  64.    
  65.     /**
  66.      * Get id
  67.      *
  68.      * @return integer
  69.      */
  70.     public function getId() {
  71.         return $this->id;
  72.     }
  73.  
  74.     /**
  75.      * Set latitude
  76.      *
  77.      * @param string $latitude
  78.      * @return Location
  79.      */
  80.     public function setLatitude($latitude) {
  81.         $this->latitude = $latitude;
  82.  
  83.         return $this;
  84.     }
  85.  
  86.     /**
  87.      * Get latitude
  88.      *
  89.      * @return string
  90.      */
  91.     public function getLatitude() {
  92.         return $this->latitude;
  93.     }
  94.  
  95.     /**
  96.      * Set longitude
  97.      *
  98.      * @param string $longitude
  99.      * @return Location
  100.      */
  101.     public function setLongitude($longitude) {
  102.         $this->longitude = $longitude;
  103.  
  104.         return $this;
  105.     }
  106.  
  107.     /**
  108.      * Get longitude
  109.      *
  110.      * @return string
  111.      */
  112.     public function getLongitude() {
  113.         return $this->longitude;
  114.     }
  115.  
  116.     /**
  117.      * Set userDefinedString
  118.      *
  119.      * @param string $userDefinedString
  120.      * @return Location
  121.      */
  122.     public function setUserDefinedString($userDefinedString) {
  123.         $this->userDefinedString = $userDefinedString;
  124.  
  125.         return $this;
  126.     }
  127.  
  128.     /**
  129.      * Get userDefinedString
  130.      *
  131.      * @return string
  132.      */
  133.     public function getUserDefinedString() {
  134.         return $this->userDefinedString;
  135.     }
  136.  
  137.     /**
  138.      * Set computedString
  139.      *
  140.      * @param string $computedString
  141.      * @return Location
  142.      */
  143.     public function setComputedString($computedString) {
  144.         $this->computedString = $computedString;
  145.  
  146.         return $this;
  147.     }
  148.  
  149.     /**
  150.      * Get computedString
  151.      *
  152.      * @return string
  153.      */
  154.     public function getComputedString() {
  155.         return $this->computedString;
  156.     }
  157.  
  158. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement