mark client parameter in recipient list class as deprecated

This commit is contained in:
Daniel Seifert 2023-01-07 22:50:17 +01:00
parent a8756c7ade
commit 95384c5eba
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170
2 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,10 @@ class RecipientsList implements RecipientsListInterface, Iterator
*/
private $recipients = [];
/**
* @deprecated unused client parameter will removed
* @param Client $client
*/
public function __construct(Client $client)
{
$this->setClient($client);
@ -113,6 +117,7 @@ class RecipientsList implements RecipientsListInterface, Iterator
}
/**
* @deprecated
* @return Client
*/
public function getClient(): Client
@ -121,6 +126,7 @@ class RecipientsList implements RecipientsListInterface, Iterator
}
/**
* @deprecated
* @param Client $client
*
* @return RecipientsList

View File

@ -20,6 +20,10 @@ use D3\LinkmobilityClient\ValueObject\Recipient;
interface RecipientsListInterface
{
/**
* @deprecated unused client parameter will removed
* @param Client $client
*/
public function __construct(Client $client);
public function add(Recipient $recipient): RecipientsListInterface;