8
0
klicktipp-php-client/src/Entities/Subscription.php

62 Zeilen
1.3 KiB
PHP

2024-12-22 13:52:28 +01:00
<?php
2024-12-29 00:47:30 +01:00
/**
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
2024-12-22 13:52:28 +01:00
namespace D3\KlicktippPhpClient\Entities;
use Doctrine\Common\Collections\ArrayCollection;
class Subscription extends ArrayCollection
{
2024-12-22 23:38:41 +01:00
public function getListId(): string
2024-12-22 13:52:28 +01:00
{
2024-12-22 23:38:41 +01:00
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');
2024-12-22 13:52:28 +01:00
}
2024-12-29 00:47:30 +01:00
}