src/OfficeBrain/Bundle/CoreBundle/Entity/Country.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * Entity For Country
  7.  * @author OfficeBrain 4493
  8.  */
  9. /**
  10.  * Country
  11.  *
  12.  * @ORM\Table(name="tbl_country")
  13.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\CoreBundle\Entity\CountryRepository")
  14.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
  15.  */
  16. class Country
  17. {
  18.     /**
  19.      * @var integer
  20.      *
  21.      * @ORM\Column(name="id", type="bigint",length=20, options={"unsigned"=true})
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="country_name", type="string", length=255, options={"collate"="utf8_unicode_ci"})
  30.      */
  31.     private $countryName;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="country_code", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  36.      */
  37.     private $countryCode;
  38.     
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="currency_code", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  43.      */
  44.     private $currencyCode;
  45.     
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="currency_symbol", type="string", length=20)
  50.      */
  51.     private $currencySymbol;
  52.     
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="image", type="blob")
  57.      */
  58.     private $image;
  59.     
  60.     /**
  61.      * @var datetime
  62.      *
  63.      * @Gedmo\Timestampable(on="create")
  64.      * @ORM\Column(name="created_at",type="datetime")
  65.      */
  66.     protected $createdAt;
  67.     
  68.     /**
  69.      * @var datetime
  70.      *
  71.      * @Gedmo\Timestampable(on="update")
  72.      * @ORM\Column( name="updated_at", type="datetime",nullable=true)
  73.      */
  74.     protected $updatedAt;
  75.     
  76.     
  77.     /**
  78.      * @var datetime
  79.      *
  80.      * @ORM\Column(name="deleted_at",type="datetime",  nullable=true)
  81.      */
  82.     protected $deletedAt;
  83.     
  84.     /**
  85.      * @var integer
  86.      * @ORM\Column(name="created_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  87.      */
  88.     private $createdUid;
  89.     
  90.     /**
  91.      * @var integer
  92.      * @ORM\Column(name="updated_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  93.      */
  94.     private $updatedUid;
  95.     
  96.     /**
  97.      * @var integer
  98.      * @ORM\Column(name="deleted_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  99.      */
  100.     private $deletedUid;
  101.     /**
  102.      * Get id
  103.      *
  104.      * @return integer
  105.      */
  106.     public function getId()
  107.     {
  108.         return $this->id;
  109.     }
  110.     /**
  111.      * Set countryName
  112.      *
  113.      * @param string $countryName
  114.      * @return Country
  115.      */
  116.     public function setCountryName($countryName)
  117.     {
  118.         $this->countryName $countryName;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get countryName
  123.      *
  124.      * @return string
  125.      */
  126.     public function getCountryName()
  127.     {
  128.         return $this->countryName;
  129.     }
  130.     /**
  131.      * Set countryCode
  132.      *
  133.      * @param string $countryCode
  134.      * @return Country
  135.      */
  136.     public function setCountryCode($countryCode)
  137.     {
  138.         $this->countryCode $countryCode;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get countryCode
  143.      *
  144.      * @return string
  145.      */
  146.     public function getCountryCode()
  147.     {
  148.         return $this->countryCode;
  149.     }
  150.     
  151.     /**
  152.      * Set currencySymbol
  153.      *
  154.      * @param string $currencySymbol
  155.      * @return CurrencyCode
  156.      */
  157.     public function setCurrencySymbol($currencySymbol)
  158.     {
  159.         $this->currencySymbol $currencySymbol;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get currencySymbol
  164.      *
  165.      * @return string 
  166.      */
  167.     public function getCurrencySymbol()
  168.     {
  169.         return $this->currencySymbol;
  170.     }
  171.     /**
  172.      * Set createdAt
  173.      *
  174.      * @param \DateTime $createdAt
  175.      * @return Country
  176.      */
  177.     public function setCreatedAt($createdAt)
  178.     {
  179.         $this->createdAt $createdAt;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get createdAt
  184.      *
  185.      * @return \DateTime
  186.      */
  187.     public function getCreatedAt()
  188.     {
  189.         return $this->createdAt;
  190.     }
  191.     /**
  192.      * Set updatedAt
  193.      *
  194.      * @param \DateTime $updatedAt
  195.      * @return Country
  196.      */
  197.     public function setUpdatedAt($updatedAt)
  198.     {
  199.         $this->updatedAt $updatedAt;
  200.         return $this;
  201.     }
  202.     /**
  203.      * Get updatedAt
  204.      *
  205.      * @return \DateTime
  206.      */
  207.     public function getUpdatedAt()
  208.     {
  209.         return $this->updatedAt;
  210.     }
  211.     /**
  212.      * Set deletedAt
  213.      *
  214.      * @param \DateTime $deletedAt
  215.      * @return Country
  216.      */
  217.     public function setDeletedAt($deletedAt)
  218.     {
  219.         $this->deletedAt $deletedAt;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get deletedAt
  224.      *
  225.      * @return \DateTime
  226.      */
  227.     public function getDeletedAt()
  228.     {
  229.         return $this->deletedAt;
  230.     }
  231.     /**
  232.      * Set createdUid
  233.      *
  234.      * @param integer $createdUid
  235.      * @return Country
  236.      */
  237.     public function setCreatedUid($createdUid)
  238.     {
  239.         $this->createdUid $createdUid;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get createdUid
  244.      *
  245.      * @return integer
  246.      */
  247.     public function getCreatedUid()
  248.     {
  249.         return $this->createdUid;
  250.     }
  251.     /**
  252.      * Set updatedUid
  253.      *
  254.      * @param integer $updatedUid
  255.      * @return Country
  256.      */
  257.     public function setUpdatedUid($updatedUid)
  258.     {
  259.         $this->updatedUid $updatedUid;
  260.         return $this;
  261.     }
  262.     /**
  263.      * Get updatedUid
  264.      *
  265.      * @return integer
  266.      */
  267.     public function getUpdatedUid()
  268.     {
  269.         return $this->updatedUid;
  270.     }
  271.     /**
  272.      * Set deletedUid
  273.      *
  274.      * @param integer $deletedUid
  275.      * @return Country
  276.      */
  277.     public function setDeletedUid($deletedUid)
  278.     {
  279.         $this->deletedUid $deletedUid;
  280.         return $this;
  281.     }
  282.     /**
  283.      * Get deletedUid
  284.      *
  285.      * @return integer
  286.      */
  287.     public function getDeletedUid()
  288.     {
  289.         return $this->deletedUid;
  290.     }
  291.     /**
  292.      * Set currencyCode
  293.      *
  294.      * @param string $currencyCode
  295.      * @return Country
  296.      */
  297.     public function setCurrencyCode($currencyCode)
  298.     {
  299.         $this->currencyCode $currencyCode;
  300.         return $this;
  301.     }
  302.     /**
  303.      * Get currencyCode
  304.      *
  305.      * @return string
  306.      */
  307.     public function getCurrencyCode()
  308.     {
  309.         return $this->currencyCode;
  310.     }
  311.     /**
  312.      * Set image
  313.      *
  314.      * @param string $image
  315.      * @return Country
  316.      */
  317.     public function setImage($image)
  318.     {
  319.         $this->image $image;
  320.         return $this;
  321.     }
  322.     /**
  323.      * Get image
  324.      *
  325.      * @return string
  326.      */
  327.     public function getImage()
  328.     {
  329.         return $this->image;
  330.     }
  331. }