|
|
@@ -4,10 +4,9 @@ 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
|
|
|
+ * HelloAsso entity for storing HelloAsso connection information.
|
|
|
*
|
|
|
* @see https://dev.helloasso.com/docs/mire-authorisation
|
|
|
*/
|
|
|
@@ -22,17 +21,20 @@ class HelloAsso
|
|
|
#[ORM\GeneratedValue]
|
|
|
private ?int $id = null;
|
|
|
|
|
|
- #[ORM\OneToOne(targetEntity: Organization::class, inversedBy: "helloAsso")]
|
|
|
- #[ORM\JoinColumn(name: "organization_id", referencedColumnName: "id", nullable: false)]
|
|
|
+ #[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)]
|
|
|
+ #[ORM\Column(type: 'text', nullable: true)]
|
|
|
+ private ?string $challengeVerifier = null;
|
|
|
+
|
|
|
+ #[ORM\Column(type: 'text', nullable: true)]
|
|
|
private ?string $token = null;
|
|
|
|
|
|
- #[ORM\Column(type: "text", nullable: true)]
|
|
|
+ #[ORM\Column(type: 'text', nullable: true)]
|
|
|
private ?string $refreshToken = null;
|
|
|
|
|
|
- #[ORM\Column(type: "string", length: 255, nullable: true)]
|
|
|
+ #[ORM\Column(type: 'string', length: 255, nullable: true)]
|
|
|
private ?string $organizationSlug = null;
|
|
|
|
|
|
public function getId(): ?int
|
|
|
@@ -43,6 +45,7 @@ class HelloAsso
|
|
|
public function setId(?int $id): self
|
|
|
{
|
|
|
$this->id = $id;
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -54,6 +57,18 @@ class HelloAsso
|
|
|
public function setOrganization(Organization $organization): self
|
|
|
{
|
|
|
$this->organization = $organization;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getChallengeVerifier(): ?string
|
|
|
+ {
|
|
|
+ return $this->challengeVerifier;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setChallengeVerifier(?string $challengeVerifier): self
|
|
|
+ {
|
|
|
+ $this->challengeVerifier = $challengeVerifier;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -65,6 +80,7 @@ class HelloAsso
|
|
|
public function setToken(?string $token): self
|
|
|
{
|
|
|
$this->token = $token;
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -76,6 +92,7 @@ class HelloAsso
|
|
|
public function setRefreshToken(?string $refreshToken): self
|
|
|
{
|
|
|
$this->refreshToken = $refreshToken;
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -87,6 +104,7 @@ class HelloAsso
|
|
|
public function setOrganizationSlug(?string $organizationSlug): self
|
|
|
{
|
|
|
$this->organizationSlug = $organizationSlug;
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
}
|