add subscriber endpoint
This commit is contained in:
19
src/Entities/Subscriber.php
Normal file
19
src/Entities/Subscriber.php
Normal 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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user