src/Entity/EshopPayment.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Gedmo\Translatable\Translatable;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\EntityRepo\EshopPaymentRepo")
  8.  * @ORM\Table(name="eshop_payment")
  9.  * @Gedmo\TranslationEntity(class="App\Entity\EshopPaymentTranslation")
  10.  */
  11. class EshopPayment implements Translatable
  12. {
  13.     /**
  14.      * @ORM\Column(type="integer")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */ 
  18.     private $eshopPaymentId=0;   
  19.     /**
  20.      * @Gedmo\Translatable
  21.      * @ORM\Column(type="string", length=100, nullable=true)
  22.      */
  23.     protected $eshopPaymentName;
  24.     /**
  25.      * Post locale
  26.      * Used locale to override Translation listener's locale
  27.      *
  28.      * @Gedmo\Locale
  29.      *
  30.      */
  31.     protected $locale;
  32.     /**
  33.      * @ORM\Column(type="integer", nullable=false)
  34.      */
  35.     protected $paymentId=0;   
  36.     /**
  37.      * @ORM\Column(type="float", nullable=true)
  38.      */    
  39.     protected $cost;    
  40.     /**
  41.      * @ORM\Column(type="boolean", nullable=true)
  42.      */
  43.     protected $isActive;   
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     protected $logoUrl
  48.     /**
  49.      * Get eshopPaymentId
  50.      *
  51.      * @return integer
  52.      */
  53.     public function getEshopPaymentId()
  54.     {
  55.         return $this->eshopPaymentId;
  56.     }
  57.     /**
  58.      * Set eshopPaymentName
  59.      *
  60.      * @param string $eshopPaymentName
  61.      *
  62.      * @return EshopPayment
  63.      */
  64.     public function setEshopPaymentName($eshopPaymentName)
  65.     {
  66.         $this->eshopPaymentName $eshopPaymentName;
  67.         return $this;
  68.     }
  69.     /**
  70.      * Get eshopPaymentName
  71.      *
  72.      * @return string
  73.      */
  74.     public function getEshopPaymentName()
  75.     {
  76.         return $this->eshopPaymentName;
  77.     }
  78.     /**
  79.      * Set paymentId
  80.      *
  81.      * @param integer $paymentId
  82.      *
  83.      * @return EshopPayment
  84.      */
  85.     public function setPaymentId($paymentId)
  86.     {
  87.         $this->paymentId $paymentId;
  88.         return $this;
  89.     }
  90.     /**
  91.      * Get paymentId
  92.      *
  93.      * @return integer
  94.      */
  95.     public function getPaymentId()
  96.     {
  97.         return $this->paymentId;
  98.     }
  99.     /**
  100.      * Set cost
  101.      *
  102.      * @param float $cost
  103.      *
  104.      * @return EshopPayment
  105.      */
  106.     public function setCost($cost)
  107.     {
  108.         $this->cost $cost;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get cost
  113.      *
  114.      * @return float
  115.      */
  116.     public function getCost()
  117.     {
  118.         return $this->cost;
  119.     }
  120.     /**
  121.      * Set locale
  122.      *
  123.      * @param string $locale
  124.      *
  125.      * @return Product
  126.      */
  127.     public function setLocale($locale)
  128.     {
  129.         $this->locale $locale;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get locale
  134.      *
  135.      * @return string
  136.      */
  137.     public function getLocale()
  138.     {
  139.         return $this->locale;
  140.     }
  141.     /**
  142.      * Set isActive
  143.      *
  144.      * @param boolean $isActive
  145.      *
  146.      * @return EshopPayment
  147.      */
  148.     public function setIsActive($isActive)
  149.     {
  150.         $this->isActive $isActive;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get isActive
  155.      *
  156.      * @return boolean
  157.      */
  158.     public function getIsActive()
  159.     {
  160.         return $this->isActive;
  161.     }
  162.     /**
  163.      * Set logoUrl
  164.      *
  165.      * @param string $logoUrl
  166.      *
  167.      * @return EshopPayment
  168.      */
  169.     public function setLogoUrl($logoUrl)
  170.     {
  171.         $this->logoUrl $logoUrl;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Get logoUrl
  176.      *
  177.      * @return string
  178.      */
  179.     public function getLogoUrl()
  180.     {
  181.         return $this->logoUrl;
  182.     }
  183.     public function isIsActive(): ?bool
  184.     {
  185.         return $this->isActive;
  186.     }
  187. }