<?php
namespace App\Entity;
use App\Repository\ProfitwellUserRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProfitwellUserRepository::class)]
class ProfitwellUser
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $profitwell_id;
#[ORM\Column(type: 'datetime', nullable: true)]
private $updatedAt;
#[ORM\Column(type: 'string', length: 255)]
private $profitwell_subscription_id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $status;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'profitwellUsers')]
#[ORM\JoinColumn(nullable: false)]
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getProfitwellId(): ?string
{
return $this->profitwell_id;
}
public function setProfitwellId(string $profitwell_id): self
{
$this->profitwell_id = $profitwell_id;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getProfitwellSubscriptionId(): ?string
{
return $this->profitwell_subscription_id;
}
public function setProfitwellSubscriptionId(string $profitwell_subscription_id): self
{
$this->profitwell_subscription_id = $profitwell_subscription_id;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}