src/Entity/Account/CustomerPreferredProfilesData.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Account;
  3. use App\Entity\User;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table(name'customer_preferred_profiles_data')]
  6. #[ORM\Entity]
  7. class CustomerPreferredProfilesData
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\Column(name'id'type'integer')]
  11.     #[ORM\GeneratedValue(strategy'AUTO')]
  12.     protected int $id;
  13.     #[ORM\JoinColumn(name'user_id'referencedColumnName'id'nullabletrue)]
  14.     #[ORM\OneToOne(targetEntityUser::class)]
  15.     protected ?Customer $user;
  16.     #[ORM\Column(name'shown_profiles'type'simple_array'nullabletrue)]
  17.     protected ?array $shownProfiles;
  18.     #[ORM\Column(name'hidden_profiles'type'simple_array'nullabletrue)]
  19.     protected ?array $hiddenProfiles;
  20.     public function __construct(Customer $user, ?array $shownProfiles null, ?array $hiddenProfiles null)
  21.     {
  22.         $this->user $user;
  23.         $this->shownProfiles $shownProfiles;
  24.         $this->hiddenProfiles $hiddenProfiles;
  25.     }
  26.     public function getId(): int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getUser(): ?User
  31.     {
  32.         return $this->user;
  33.     }
  34.     public function getShownProfiles(): ?array
  35.     {
  36.         return $this->shownProfiles;
  37.     }
  38.     public function setShownProfiles(?array $shownProfiles): void
  39.     {
  40.         $this->shownProfiles $shownProfiles;
  41.     }
  42.     public function getHiddenProfiles(): ?array
  43.     {
  44.         return $this->hiddenProfiles;
  45.     }
  46.     public function setHiddenProfiles(?array $hiddenProfiles): void
  47.     {
  48.         $this->hiddenProfiles $hiddenProfiles;
  49.     }
  50. }