<?php
namespace App\Entity;
use App\Repository\AdministrativeRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=AdministrativeRepository::class)
*/
class Administrative
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"customer.manage.base", "customer.list.base", "worker.actually.activity"})
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"customer.manage.base"})
*/
private $company_name;
/**
* @ORM\OneToOne(targetEntity=Customer::class, inversedBy="administrative", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $paired_customer;
public function getId(): ?int
{
return $this->id;
}
public function getCompanyName(): ?string
{
return $this->company_name;
}
public function setCompanyName(string $company_name): self
{
$this->company_name = $company_name;
return $this;
}
public function getPairedCustomer(): ?Customer
{
return $this->paired_customer;
}
public function setPairedCustomer(Customer $paired_customer): self
{
$this->paired_customer = $paired_customer;
return $this;
}
}