add subscriber endpoint

This commit is contained in:
2024-12-20 23:46:48 +01:00
parent 7608d39af8
commit e1e08ee313
2 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace D3\KlicktippPhpClient\Entities;
use Doctrine\Common\Collections\ArrayCollection;
class Subscriber extends ArrayCollection
{
public function getId(): string
{
return $this->get('id');
}
public function isSubscribed(): bool
{
// ToDo: adjust request
return $this->get('isSubscribed');
}
}