summaryrefslogtreecommitdiffstats
path: root/src/Recipient/ProcessedGroup.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Recipient/ProcessedGroup.php')
-rw-r--r--src/Recipient/ProcessedGroup.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Recipient/ProcessedGroup.php b/src/Recipient/ProcessedGroup.php
index bbe0985..eef4f79 100644
--- a/src/Recipient/ProcessedGroup.php
+++ b/src/Recipient/ProcessedGroup.php
@@ -12,14 +12,14 @@
namespace IP1\RESTClient\Recipient;
use IP1\RESTClient\Core\Communicator;
-use IP1\RESTClient\Core\UpdatableComponent;
+use IP1\RESTClient\Core\UpdatableComponentInterface;
use IP1\RESTClient\Core\ClassValidationArray;
use IP1\RESTClient\Recipient\ProcessedMembership;
/**
*
*/
-class ProcessedGroup extends Group implements UpdatableComponent, MembershipRelation
+class ProcessedGroup extends Group implements UpdatableComponentInterface, MembershipRelationInterface
{
/**
* The ID of the Group given by the API.
@@ -106,7 +106,7 @@ class ProcessedGroup extends Group implements UpdatableComponent, MembershipRela
*/
public function getMemberships(Communicator $communicator = null): ClassValidationArray
{
- if ($communicator != null) {
+ if ($communicator !== null) {
$membershipJSON = $communicator->get("api/groups/".$this->groupID."/memberships");
$membershipStd = json_decode($membershipJSON);
$memberships = [];
@@ -135,7 +135,7 @@ class ProcessedGroup extends Group implements UpdatableComponent, MembershipRela
*/
public function getContacts(Communicator $communicator = null): ClassValidationArray
{
- if ($communicator != null) {
+ if ($communicator !== null) {
$contactStd = $communicator->get('api/groups/'.$this->groupID. '/contacts');
$contactStd = json_decode($contactStd);
$contacts = RecipientFactory::createProcessedGroupsFromStdClassArray($contactStd);