src/Entity/Channel/Google/ChannelGoogleDriveFolder.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Channel\Google;
  3. use App\Entity\Channel\Channel;
  4. use App\Repository\Channel\Google\ChannelGoogleDriveFolderRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\ORM\Mapping\Entity;
  7. use Doctrine\ORM\Mapping\GeneratedValue;
  8. use Nellapp\Bundle\SDKBundle\Google\Entity\GoogleDriveFolder;
  9. #[Entity(repositoryClassChannelGoogleDriveFolderRepository::class)]
  10. #[ORM\Table('channel_google_drive_folder')]
  11. class ChannelGoogleDriveFolder
  12. {
  13.     #[ORM\IdGeneratedValueORM\Column(type'integer'nullablefalse)]
  14.     private ?int $id null;
  15.     #[ORM\OneToOne(targetEntityGoogleDriveFolder::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  16.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  17.     private ?GoogleDriveFolder $channelRootFolder null;
  18.     #[ORM\OneToOne(targetEntityGoogleDriveFolder::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  19.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  20.     private ?GoogleDriveFolder $positioningTestFolder null;
  21.     #[ORM\OneToOne(mappedBy'channelGoogleDriveFolder'targetEntityChannel::class)]
  22.     #[ORM\JoinColumn(nullablefalseonDelete'cascade')]
  23.     private ?Channel $channel null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getChannelRootFolder(): ?GoogleDriveFolder
  29.     {
  30.         return $this->channelRootFolder;
  31.     }
  32.     public function setChannelRootFolder(?GoogleDriveFolder $channelRootFolder): ChannelGoogleDriveFolder
  33.     {
  34.         $this->channelRootFolder $channelRootFolder;
  35.         return $this;
  36.     }
  37.     public function getPositioningTestFolder(): ?GoogleDriveFolder
  38.     {
  39.         return $this->positioningTestFolder;
  40.     }
  41.     public function setPositioningTestFolder(?GoogleDriveFolder $positioningTestFolder): ChannelGoogleDriveFolder
  42.     {
  43.         $this->positioningTestFolder $positioningTestFolder;
  44.         return $this;
  45.     }
  46.     public function getChannel(): ?Channel
  47.     {
  48.         return $this->channel;
  49.     }
  50.     public function setChannel(?Channel $channel): ChannelGoogleDriveFolder
  51.     {
  52.         $this->channel $channel;
  53.         return $this;
  54.     }
  55. }