vendor/nellapp/sdk-bundle/src/Google/Entity/GoogleDriveFolder.php line 14

Open in your IDE?
  1. <?php
  2. namespace Nellapp\Bundle\SDKBundle\Google\Entity;
  3. use Nellapp\Bundle\SDKBundle\Google\Entity\GoogleDriveItem\GoogleDriveItem;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Nellapp\Bundle\SDKBundle\Google\Entity\GoogleDrivePermission\GoogleDrivePermission;
  6. use Nellapp\Bundle\SDKBundle\Google\Repository\GoogleDriveFolderRepository;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use Doctrine\Common\Collections\Collection;
  9. #[ORM\Entity(repositoryClass: GoogleDriveFolderRepository::class)]
  10. #[ORM\Table(name: 'google_drive_folder')]
  11. class GoogleDriveFolder extends GoogleDriveItem
  12. {
  13. #[ORM\OneToMany(targetEntity: GoogleDrivePermission::class, cascade: ['persist', 'remove'], orphanRemoval: true, mappedBy: 'googleDriveFolder')]
  14. private Collection $googleDrivePermissions;
  15. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  16. private ?string $type = null;
  17. public function __construct() {
  18. $this->googleDrivePermissions = new ArrayCollection();
  19. }
  20. public function getGoogleDrivePermissions(): Collection
  21. {
  22. return $this->googleDrivePermissions;
  23. }
  24. public function setGoogleDrivePermissions(Collection $googleDrivePermissions): GoogleDriveFolder
  25. {
  26. $this->googleDrivePermissions = $googleDrivePermissions;
  27. return $this;
  28. }
  29. public function getType(): ?string
  30. {
  31. return $this->type;
  32. }
  33. public function setType(?string $type): GoogleDriveFolder
  34. {
  35. $this->type = $type;
  36. return $this;
  37. }
  38. }