src/Entity/ProfileNote.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProfileNoteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProfileNoteRepository::class)]
  6. #[ORM\HasLifecycleCallbacks]
  7. class ProfileNote
  8. {
  9.     use \App\Traits\EntityDateTimeAbleTrait;
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityProfile::class, inversedBy'profileNotes')]
  15.     private ?\App\Entity\Profile $profile null;
  16.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'profileNotes')]
  17.     private ?\App\Entity\User $user null;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private ?string $note null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getProfile(): ?Profile
  25.     {
  26.         return $this->profile;
  27.     }
  28.     public function setProfile(?Profile $profile): self
  29.     {
  30.         $this->profile $profile;
  31.         return $this;
  32.     }
  33.     public function getUser(): ?User
  34.     {
  35.         return $this->user;
  36.     }
  37.     public function setUser(?User $user): self
  38.     {
  39.         $this->user $user;
  40.         return $this;
  41.     }
  42.     public function getNote(): ?string
  43.     {
  44.         return $this->note;
  45.     }
  46.     public function setNote(?string $note): self
  47.     {
  48.         $this->note $note;
  49.         return $this;
  50.     }
  51. }