<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\EshopPaymentRepo")
* @ORM\Table(name="eshop_payment")
* @Gedmo\TranslationEntity(class="App\Entity\EshopPaymentTranslation")
*/
class EshopPayment implements Translatable
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $eshopPaymentId=0;
/**
* @Gedmo\Translatable
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $eshopPaymentName;
/**
* Post locale
* Used locale to override Translation listener's locale
*
* @Gedmo\Locale
*
*/
protected $locale;
/**
* @ORM\Column(type="integer", nullable=false)
*/
protected $paymentId=0;
/**
* @ORM\Column(type="float", nullable=true)
*/
protected $cost;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isActive;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $logoUrl;
/**
* Get eshopPaymentId
*
* @return integer
*/
public function getEshopPaymentId()
{
return $this->eshopPaymentId;
}
/**
* Set eshopPaymentName
*
* @param string $eshopPaymentName
*
* @return EshopPayment
*/
public function setEshopPaymentName($eshopPaymentName)
{
$this->eshopPaymentName = $eshopPaymentName;
return $this;
}
/**
* Get eshopPaymentName
*
* @return string
*/
public function getEshopPaymentName()
{
return $this->eshopPaymentName;
}
/**
* Set paymentId
*
* @param integer $paymentId
*
* @return EshopPayment
*/
public function setPaymentId($paymentId)
{
$this->paymentId = $paymentId;
return $this;
}
/**
* Get paymentId
*
* @return integer
*/
public function getPaymentId()
{
return $this->paymentId;
}
/**
* Set cost
*
* @param float $cost
*
* @return EshopPayment
*/
public function setCost($cost)
{
$this->cost = $cost;
return $this;
}
/**
* Get cost
*
* @return float
*/
public function getCost()
{
return $this->cost;
}
/**
* Set locale
*
* @param string $locale
*
* @return Product
*/
public function setLocale($locale)
{
$this->locale = $locale;
return $this;
}
/**
* Get locale
*
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* Set isActive
*
* @param boolean $isActive
*
* @return EshopPayment
*/
public function setIsActive($isActive)
{
$this->isActive = $isActive;
return $this;
}
/**
* Get isActive
*
* @return boolean
*/
public function getIsActive()
{
return $this->isActive;
}
/**
* Set logoUrl
*
* @param string $logoUrl
*
* @return EshopPayment
*/
public function setLogoUrl($logoUrl)
{
$this->logoUrl = $logoUrl;
return $this;
}
/**
* Get logoUrl
*
* @return string
*/
public function getLogoUrl()
{
return $this->logoUrl;
}
public function isIsActive(): ?bool
{
return $this->isActive;
}
}