| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- namespace App\Entity\Organization;
- use App\Entity\Traits\CreatedOnAndByTrait;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Serializer\Annotation\Groups;
- /**
- * HelloAsso entity for storing HelloAsso connection information
- *
- * @see https://dev.helloasso.com/docs/mire-authorisation
- */
- #[ORM\Entity]
- #[ORM\Table]
- class HelloAsso
- {
- use CreatedOnAndByTrait;
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- #[ORM\OneToOne(targetEntity: Organization::class, inversedBy: "helloAsso")]
- #[ORM\JoinColumn(name: "organization_id", referencedColumnName: "id", nullable: false)]
- private Organization $organization;
- #[ORM\Column(type: "text", nullable: true)]
- private ?string $token = null;
- #[ORM\Column(type: "text", nullable: true)]
- private ?string $refreshToken = null;
- #[ORM\Column(type: "string", length: 255, nullable: true)]
- private ?string $organizationSlug = null;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function setId(?int $id): self
- {
- $this->id = $id;
- return $this;
- }
- public function getOrganization(): Organization
- {
- return $this->organization;
- }
- public function setOrganization(Organization $organization): self
- {
- $this->organization = $organization;
- return $this;
- }
- public function getToken(): ?string
- {
- return $this->token;
- }
- public function setToken(?string $token): self
- {
- $this->token = $token;
- return $this;
- }
- public function getRefreshToken(): ?string
- {
- return $this->refreshToken;
- }
- public function setRefreshToken(?string $refreshToken): self
- {
- $this->refreshToken = $refreshToken;
- return $this;
- }
- public function getOrganizationSlug(): ?string
- {
- return $this->organizationSlug;
- }
- public function setOrganizationSlug(?string $organizationSlug): self
- {
- $this->organizationSlug = $organizationSlug;
- return $this;
- }
- }
|