Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- * @ORM\Table(name="location")
- */
- class Location
- {
- /**
- * @ORM\Column(type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- *
- * @var integer
- */
- private $id;
- /**
- * @ORM\Column(type="decimal", precision=11, scale=8, nullable=true)
- *
- * @var string
- * NOTE: Decimal values retrieved from the database are always converted to PHP’s string type or null if no data is present.
- */
- private $latitude;
- /**
- * @ORM\Column(type="decimal", precision=11, scale=8, nullable=true)
- *
- * @var string
- * NOTE: Decimal values retrieved from the database are always converted to PHP’s string type or null if no data is present.
- */
- private $longitude;
- /**
- * @ORM\Column(type="string", length=100)
- *
- * @var string
- */
- private $userDefinedString;
- /**
- * @ORM\Column(type="string", length=100, nullable=true)
- *
- * @var string
- */
- private $computedString;
- public function __toString() {
- return $this->userDefinedString;
- }
- /**
- * @param string $userDefinedString
- * @param string $latitude
- * @param string $longitude
- */
- public function __construct($userDefinedString = '', $latitude = '', $longitude = '') {
- $this->userDefinedString = $userDefinedString;
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId() {
- return $this->id;
- }
- /**
- * Set latitude
- *
- * @param string $latitude
- * @return Location
- */
- public function setLatitude($latitude) {
- $this->latitude = $latitude;
- return $this;
- }
- /**
- * Get latitude
- *
- * @return string
- */
- public function getLatitude() {
- return $this->latitude;
- }
- /**
- * Set longitude
- *
- * @param string $longitude
- * @return Location
- */
- public function setLongitude($longitude) {
- $this->longitude = $longitude;
- return $this;
- }
- /**
- * Get longitude
- *
- * @return string
- */
- public function getLongitude() {
- return $this->longitude;
- }
- /**
- * Set userDefinedString
- *
- * @param string $userDefinedString
- * @return Location
- */
- public function setUserDefinedString($userDefinedString) {
- $this->userDefinedString = $userDefinedString;
- return $this;
- }
- /**
- * Get userDefinedString
- *
- * @return string
- */
- public function getUserDefinedString() {
- return $this->userDefinedString;
- }
- /**
- * Set computedString
- *
- * @param string $computedString
- * @return Location
- */
- public function setComputedString($computedString) {
- $this->computedString = $computedString;
- return $this;
- }
- /**
- * Get computedString
- *
- * @return string
- */
- public function getComputedString() {
- return $this->computedString;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement