<?php
namespace App\Model;
use App\Model\User;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Serializer\Annotation\Groups;
class Bubble
{
/**
* bUuid
*
* @var mixed
*
* @Groups({"getuser:login"})
*/
private $bUuid;
/**
* bId
*
* @var mixed
*
* @Groups({"getuser:login"})
*/
private $bId;
/**
* bName
*
* @var mixed
*
* @Groups({"getuser:login"})
*/
private $bName;
/**
* bUsersCounter
*
* @var mixed
*/
private $bUsersCounter;
/**
* bWalletAddress
*
* @var mixed
*/
private $bWalletAddress;
/**
* bWalletPassword
*
* @var mixed
*/
private $bWalletPassword;
/**
* bScAddress
*
* @var mixed
*/
private $bScAddress;
/**
* bCreationDate
*
* @var mixed
*/
private $bCreationDate;
/**
* bUpdateDate
*
* @var mixed
*/
private $bUpdateDate;
/**
* bIsActive
*
* @var mixed
*
* @Groups({"getuser:login"})
*/
private $bIsActive;
/**
* users
*
* @var mixed
*/
private $users;
/**
* plans
*
* @var mixed
*/
private $plans;
/**
* printers
*
* @var mixed
*/
private $printers;
/**
* jobOrders
*
* @var mixed
*/
private $jobOrders;
/**
* industrials
*
* @var mixed
*/
private $industrials;
/**
* bShareProdPath
*
* @var mixed
*/
private $bShareProdPath;
/**
* bShareProdUser
*
* @var mixed
*/
private $bShareProdUser;
/**
* bShareProdPwd
*
* @var mixed
*/
private $bShareProdPwd;
/**
* bShareTempPath
*
* @var mixed
*/
private $bShareTempPath;
/**
* bShareTempUser
*
* @var mixed
*/
private $bShareTempUser;
/**
* bShareTempPwd
*
* @var mixed
*/
private $bShareTempPwd;
/**
* bShareAddedAt
*
* @var mixed
*/
private $bShareAddedAt;
/**
* bShareUpdateAt
*
* @var mixed
*/
private $bShareUpdateAt;
/**
*
*/
private $bAddress;
/**
*
*/
private $bPostalCode;
/**
*
*/
private $bCityName;
/**
*
*/
private $bCountry;
/**
*
*/
private $bStripeCusId;
/**
*
*/
private $bPrintCounter;
/**
*
*/
private $bAbiPath;
/**
*
*/
private $isAdValorem;
/**
*
*/
private $isFlatFee;
private $isQcUpdatable;
/**
* @Groups({"deserialize"})
*/
private $numberCredit;
/**
* @Groups({"deserialize"})
*/
private $creditValue;
/**
* @Groups({"deserialize"})
*/
private $adValorem;
/**
*
*/
private $stripeCustomerId;
/**
*
*/
private $stripePayMethodId;
/**
* __construct
*
* @return void
*/
public function __construct()
{
$this->plans = new ArrayCollection();
$this->users = new ArrayCollection();
$this->printers = new ArrayCollection();
$this->jobOrders = new ArrayCollection();
$this->industrials = new ArrayCollection();
}
/**
* getUsers
*
* @return Collection|User[]
*/
public function getUsers(): Collection
{
return $this->users;
}
/**
* addUser
*
* @param mixed $user
* @return self
*/
public function addUser(User $user): self
{
if (!$this->users->contains($user)) {
$this->users[] = $user;
$user->addBubble($this);
}
return $this;
}
/**
* getPlans
*
* @return Collection|Plan[]
*/
public function getPlans(): Collection
{
return $this->plans;
}
/**
* addPlan
*
* @param mixed $plan
* @return self
*/
public function addPlan(Plan $plan): self
{
$control = '1';
if(!empty($this -> plans)){
foreach($this -> plans as $pl){
if($pl -> getPlanId() == $plan -> getPlanId()){
$control = '0';
}
}
}
if($control !== '0'){
$this->plans[] = $plan;
$plan->setBubble($this);
}
return $this;
}
/**
* removePlan
*
* @param mixed $plan
* @return self
*/
public function removePlan(Plan $plan): self
{
if ($this->plans->contains($plan)) {
$this->plans->removeElement($plan);
// set the owning side to null (unless already changed)
if ($plan->getBubble() === $this) {
$plan->setBubble(null);
}
}
return $this;
}
/**
* getPrinters
*
* @return Collection|Printer[]
*/
public function getPrinters(): Collection
{
return $this->printers;
}
/**
* addPrinters
*
* @param mixed $printer
* @return self
*/
public function addPrinters(Printer $printer): self
{
$control = '1';
if(!empty($this -> printers)){
foreach($this -> printers as $pr){
if($pr -> getPrinterId() == $printer -> getPrinterId()){
$control = '0';
}
}
}
if($control !== '0'){
$this->printers[] = $printer;
$printer->setBubble($this);
}
return $this;
}
/**
* removePrinter
*
* @param mixed $printer
* @return self
*/
public function removePrinter(Printer $printer): self
{
if ($this->printer->contains($printer)) {
$this->printer->removeElement($printer);
// set the owning side to null (unless already changed)
if ($printer->getBubble() === $this) {
$printer->setBubble(null);
}
}
return $this;
}
/**
* getjobOrders
*
* @return Collection|JobOrder[]
*/
public function getJobOrders(): Collection
{
return $this->jobOrders;
}
/**
* addJobOrders
*
* @param mixed $jobOrder
* @return self
*/
public function addJobOrders(JobOrder $jobOrder): self
{
$control = '1';
if(!empty($this -> jobOrders)){
foreach($this -> jobOrders as $jo){
if($jo -> getJobOrderId() == $jobOrder -> getJobOrderId()){
$control = '0';
}
}
}
if($control !== '0'){
$this->jobOrders[] = $jobOrder;
$jobOrder->setBubble($this);
}
return $this;
}
/**
* removeJobOrder
*
* @param mixed $jobOrder
* @return self
*/
public function removeJobOrder(JobOrder $jobOrder): self
{
if ($this->jobOrder->contains($jobOrder)) {
$this->jobOrder->removeElement($jobOrder);
// set the owning side to null (unless already changed)
if ($jobOrder->getBubble() === $this) {
$jobOrder->setBubble(null);
}
}
return $this;
}
/**
* getIndustrials
*
* @return Collection|Industrial[]
*/
public function getIndustrials(): Collection
{
return $this->industrials;
}
/**
* addIndustrial
*
* @param mixed $industrial
* @return self
*/
public function addIndustrial(Industrial $industrial) : self
{
$control = '1';
if(!empty($this -> industrials)){
foreach($this -> industrials as $ind){
if($ind -> getIndId() == $industrial -> getIndId()){
$control = '0';
}
}
}
if($control !== '0'){
$this->industrials[] = $industrial;
}
return $this;
}
/**
* removeIndustrial
*
* @param mixed $industrial
* @return self
*/
public function removeIndustrial(Industrial $industrial): self
{
if ($this->industrials->contains($industrial)) {
$this->industrials->removeElement($industrial);
// set the owning side to null (unless already changed)
if ($industrial->getBubble() === $this) {
$industrial->setBubble(null);
}
}
return $this;
}
/**
* getbUuid
*
* @return void
*/
public function getBuuid()
{
return $this->bUuid;
}
/**
* setbUuid
*
* @param mixed $bUuid
* @return void
*/
public function setBuuid($bUuid)
{
$this->bUuid = $bUuid;
return $this;
}
/**
* getBId
*
* @return void
*/
public function getBId()
{
return $this->bId;
}
/**
* setBId
*
* @param mixed $bId
* @return void
*/
public function setBId($bId)
{
$this->bId = $bId;
return $this;
}
/**
* getBName
*
* @return void
*/
public function getBName()
{
return $this->bName;
}
public function getBubbleName()
{
return $this->bName;
}
/**
* setBName
*
* @param mixed $bName
* @return void
*/
/**
* @param $bName
* @return $this
*/
public function setBName($bName)
{
$this->bName = $bName;
return $this;
}
/**
* getBUsersCounter
*
* @return void
*/
public function getBUsersCounter()
{
return $this->bUsersCounter;
}
/**
* Set the value of bUsersCounter
*
* @return self
*/
public function setBUsersCounter($bUsersCounter)
{
$this->bUsersCounter = $bUsersCounter;
return $this;
}
/**
* Get the value of bWalletAddress
*/
public function getBWalletAddress()
{
return $this->bWalletAddress;
}
/**
* Set the value of bWalletAddress
*
* @return self
*/
public function setBWalletAddress($bWalletAddress)
{
$this->bWalletAddress = $bWalletAddress;
return $this;
}
/**
* Get the value of bWalletPassword
*/
public function getBWalletPassword()
{
return $this->bWalletPassword;
}
/**
* Set the value of bWalletPassword
*
* @return self
*/
public function setBWalletPassword($bWalletPassword)
{
$this->bWalletPassword = $bWalletPassword;
return $this;
}
/**
* Get the value of bScAddress
*/
public function getBScAddress()
{
return $this->bScAddress;
}
/**
* Set the value of bScAddress
*
* @return self
*/
public function setBScAddress($bScAddress)
{
$this->bScAddress = $bScAddress;
return $this;
}
/**
* Get the value of bCreationDate
*/
public function getBCreationDate()
{
return $this->bCreationDate;
}
/**
* Set the value of bCreationDate
*
* @return self
*/
public function setBCreationDate($bCreationDate)
{
$this->bCreationDate = $bCreationDate;
return $this;
}
/**
* Get the value of bIsActive
*/
public function getBIsActive()
{
return $this->bIsActive;
}
/**
* Set the value of bIsActive
*
* @return self
*/
public function setBIsActive($bIsActive)
{
$this->bIsActive = $bIsActive;
return $this;
}
/**
* Get the value of bShareProdPath
*/
public function getBShareProdPath()
{
return $this->bShareProdPath;
}
/**
* Set the value of bShareProdPath
*
* @return self
*/
public function setBShareProdPath($bShareProdPath)
{
$this->bShareProdPath = $bShareProdPath;
return $this;
}
/**
* Get the value of bShareProdPwd
*/
public function getBShareProdPwd()
{
return $this->bShareProdPwd;
}
/**
* Set the value of bShareProdPwd
*
* @return self
*/
public function setBShareProdPwd($bShareProdPwd)
{
$this->bShareProdPwd = $bShareProdPwd;
return $this;
}
/**
* Get the value of bShareProdUser
*/
public function getBShareProdUser()
{
return $this->bShareProdUser;
}
/**
* Set the value of bShareProdUser
*
* @return self
*/
public function setBShareProdUser($bShareProdUser)
{
$this->bShareProdUser = $bShareProdUser;
return $this;
}
/**
* Get the value of bShareTempPath
*/
public function getBShareTempPath()
{
return $this->bShareTempPath;
}
/**
* Set the value of bShareTempPath
*
* @return self
*/
public function setBShareTempPath($bShareTempPath)
{
$this->bShareTempPath = $bShareTempPath;
return $this;
}
/**
* Get the value of bShareTempUser
*/
public function getBShareTempUser()
{
return $this->bShareTempUser;
}
/**
* Set the value of bShareTempUser
*
* @return self
*/
public function setBShareTempUser($bShareTempUser)
{
$this->bShareTempUser = $bShareTempUser;
return $this;
}
/**
* Get the value of bShareTempPwd
*/
public function getBShareTempPwd()
{
return $this->bShareTempPwd;
}
/**
* Set the value of bShareTempPwd
*
* @return self
*/
public function setBShareTempPwd($bShareTempPwd)
{
$this->bShareTempPwd = $bShareTempPwd;
return $this;
}
/**
* Get the value of bAddress
*/
public function getBAddress()
{
return $this->bAddress;
}
/**
* Set the value of bAddress
*
* @return self
*/
public function setBAddress($bAddress)
{
$this->bAddress = $bAddress;
return $this;
}
/**
* Get the value of bPostalCode
*/
public function getBPostalCode()
{
return $this->bPostalCode;
}
/**
* Set the value of bPostalCode
*
* @return self
*/
public function setBPostalCode($bPostalCode)
{
$this->bPostalCode = $bPostalCode;
return $this;
}
/**
* Get the value of bCityName
*/
public function getBCityName()
{
return $this->bCityName;
}
/**
* Set the value of bCityName
*
* @return self
*/
public function setBCityName($bCityName)
{
$this->bCityName = $bCityName;
return $this;
}
/**
* Get the value of bCountry
*/
public function getBCountry()
{
return $this->bCountry;
}
/**
* Set the value of bCountry
*
* @return self
*/
public function setBCountry($bCountry)
{
$this->bCountry = $bCountry;
return $this;
}
/**
* Get bUpdateDate
*
* @return mixed
*/
public function getBUpdateDate()
{
return $this->bUpdateDate;
}
/**
* Set bUpdateDate
*
* @param mixed $bUpdateDate bUpdateDate
*
* @return self
*/
public function setBUpdateDate($bUpdateDate)
{
$this->bUpdateDate = $bUpdateDate;
return $this;
}
/**
* Get bShareAddedAt
*
* @return mixed
*/
public function getBShareAddedAt()
{
return $this->bShareAddedAt;
}
/**
* Set bShareAddedAt
*
* @param mixed $bShareAddedAt bShareAddedAt
*
* @return self
*/
public function setBShareAddedAt($bShareAddedAt)
{
$this->bShareAddedAt = $bShareAddedAt;
return $this;
}
/**
* Get bShareUpdateAt
*
* @return mixed
*/
public function getBShareUpdateAt()
{
return $this->bShareUpdateAt;
}
/**
* Set bShareUpdateAt
*
* @param mixed $bShareUpdateAt bShareUpdateAt
*
* @return self
*/
public function setBShareUpdateAt($bShareUpdateAt)
{
$this->bShareUpdateAt = $bShareUpdateAt;
return $this;
}
/**
* Get the value of bStripeCusId
*/
public function getBStripeCusId()
{
return $this->bStripeCusId;
}
/**
* Set the value of bStripeCusId
*
* @return self
*/
public function setBStripeCusId($bStripeCusId)
{
$this->bStripeCusId = $bStripeCusId;
return $this;
}
/**
* Get the value of bPrintCounter
*/
public function getBPrintCounter()
{
return $this->bPrintCounter;
}
/**
* Set the value of bPrintCounter
*
* @return self
*/
public function setBPrintCounter($bPrintCounter)
{
$this->bPrintCounter = $bPrintCounter;
return $this;
}
/**
* Get the value of isAdValorem
*/
public function getIsAdValorem()
{
return $this->isAdValorem;
}
/**
* Set the value of isAdValorem
*
* @return self
*/
public function setIsAdValorem($isAdValorem)
{
$this->isAdValorem = $isAdValorem;
return $this;
}
/**
* Get the value of isFlatFee
*/
public function getIsFlatFee()
{
return $this->isFlatFee;
}
/**
* Set the value of isFlatFee
*
* @return self
*/
public function setIsFlatFee($isFlatFee)
{
$this->isFlatFee = $isFlatFee;
return $this;
}
/**
* Get the value of bAbiPath
*/
public function getBAbiPath()
{
return $this->bAbiPath;
}
/**
* Set the value of bAbiPath
*
* @return self
*/
public function setBAbiPath($bAbiPath)
{
$this->bAbiPath = $bAbiPath;
return $this;
}
public function getIsQcUpdatable()
{
return $this->isQcUpdatable;
}
public function setIsQcUpdatable($isQcUpdatable)
{
$this->isQcUpdatable = $isQcUpdatable;
return $this;
}
public function getNumberCredit()
{
return $this->numberCredit;
}
/**
* @param $numberCredit
* @return $this
*/
public function setNumberCredit($numberCredit): Bubble
{
$this->numberCredit = $numberCredit;
return $this;
}
public function getCreditValue()
{
return $this->creditValue;
}
/**
* @param $creditValue
* @return $this
*/
public function setCreditValue($creditValue): Bubble
{
$this->creditValue = $creditValue;
return $this;
}
public function getAdValorem()
{
return $this->adValorem;
}
/**
* @param $adValorem
* @return $this
*/
public function setAdValorem($adValorem): Bubble
{
$this->adValorem = $adValorem;
return $this;
}
/**
* Get the value of stripeCustomerId
*/
public function getStripeCustomerId()
{
return $this->stripeCustomerId;
}
/**
* Set the value of stripeCustomerId
*
* @return self
*/
public function setStripeCustomerId($stripeCustomerId)
{
$this->stripeCustomerId = $stripeCustomerId;
return $this;
}
/**
* Get the value of stripePayMethodId
*/
public function getStripePayMethodId()
{
return $this->stripePayMethodId;
}
/**
* Set the value of stripePayMethodId
*
* @return self
*/
public function setStripePayMethodId($stripePayMethodId)
{
$this->stripePayMethodId = $stripePayMethodId;
return $this;
}
}