complete subscription endpoint
Cette révision appartient à :
Parent
c5085b1bb8
révision
7a216173d9
@ -6,8 +6,43 @@ use Doctrine\Common\Collections\ArrayCollection;
|
|||||||
|
|
||||||
class Subscription extends ArrayCollection
|
class Subscription extends ArrayCollection
|
||||||
{
|
{
|
||||||
public function getId(): string
|
public function getListId(): string
|
||||||
{
|
{
|
||||||
return $this->get('id');
|
return $this->get('listid') ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getName(): string
|
||||||
|
{
|
||||||
|
return $this->get('name') ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPendingUrl(): string
|
||||||
|
{
|
||||||
|
return $this->get('pendingurl') ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getThankyouUrl(): string
|
||||||
|
{
|
||||||
|
return $this->get('thankyouurl') ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function useSingleOptin(): bool
|
||||||
|
{
|
||||||
|
return $this->get('usesingleoptin');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function useDoubleOptin(): bool
|
||||||
|
{
|
||||||
|
return !$this->useSingleOptin();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function resendConfirmationEmail(): bool
|
||||||
|
{
|
||||||
|
return $this->get('resendconfirmationemail');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function useChangeEmail(): bool
|
||||||
|
{
|
||||||
|
return $this->get('usechangeemail');
|
||||||
}
|
}
|
||||||
}
|
}
|
Chargement…
x
Référencer dans un nouveau ticket
Bloquer un utilisateur