<?php
namespace App\Entity\Account;
use App\Entity\User;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'customer_preferred_profiles_data')]
#[ORM\Entity]
class CustomerPreferredProfilesData
{
#[ORM\Id]
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
protected int $id;
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: true)]
#[ORM\OneToOne(targetEntity: User::class)]
protected ?Customer $user;
#[ORM\Column(name: 'shown_profiles', type: 'simple_array', nullable: true)]
protected ?array $shownProfiles;
#[ORM\Column(name: 'hidden_profiles', type: 'simple_array', nullable: true)]
protected ?array $hiddenProfiles;
public function __construct(Customer $user, ?array $shownProfiles = null, ?array $hiddenProfiles = null)
{
$this->user = $user;
$this->shownProfiles = $shownProfiles;
$this->hiddenProfiles = $hiddenProfiles;
}
public function getId(): int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function getShownProfiles(): ?array
{
return $this->shownProfiles;
}
public function setShownProfiles(?array $shownProfiles): void
{
$this->shownProfiles = $shownProfiles;
}
public function getHiddenProfiles(): ?array
{
return $this->hiddenProfiles;
}
public function setHiddenProfiles(?array $hiddenProfiles): void
{
$this->hiddenProfiles = $hiddenProfiles;
}
}