Skip to content

Commit c3d4bd1

Browse files
authored
[TASK] Remove unused notifications (#697)
1 parent 7411ee9 commit c3d4bd1

File tree

9 files changed

+0
-348
lines changed

9 files changed

+0
-348
lines changed

src/Entity/User.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
use T3G\DatahubApiLibrary\BitMask\EmailType;
1414
use T3G\DatahubApiLibrary\Enum\CertificationStatus;
15-
use T3G\DatahubApiLibrary\Notification\NotificationInterface;
1615

1716
class User implements \JsonSerializable
1817
{
@@ -70,11 +69,6 @@ class User implements \JsonSerializable
7069
*/
7170
private array $subscriptions = [];
7271

73-
/**
74-
* @var NotificationInterface[]
75-
*/
76-
private array $notifications = [];
77-
7872
/**
7973
* @var VoucherCode[]
8074
*/
@@ -397,35 +391,6 @@ public function addOrder(Order $order): self
397391
return $this;
398392
}
399393

400-
/**
401-
* @return NotificationInterface[]
402-
*/
403-
public function getNotifications(): array
404-
{
405-
return $this->notifications;
406-
}
407-
408-
/**
409-
* @param NotificationInterface[] $notifications
410-
*
411-
* @return $this
412-
*/
413-
public function setNotifications(array $notifications): self
414-
{
415-
$this->notifications = $notifications;
416-
417-
return $this;
418-
}
419-
420-
/**
421-
* @return $this
422-
*/
423-
public function addNotification(NotificationInterface $notification): self
424-
{
425-
$this->notifications[] = $notification;
426-
427-
return $this;
428-
}
429394
/**
430395
* @return Subscription[]
431396
*/

src/Factory/NotificationFactory.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/Factory/UserFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ public static function fromArray(array $data): User
4747
foreach ($data['subscriptions'] ?? [] as $subscription) {
4848
$user->addSubscription(SubscriptionFactory::fromArray($subscription));
4949
}
50-
foreach ($data['notifications'] ?? [] as $notification) {
51-
$user->addNotification(NotificationFactory::fromArray($notification));
52-
}
5350
foreach ($data['certifications'] ?? [] as $certification) {
5451
$user->addCertification(CertificationFactory::fromArray($certification));
5552
}

src/Notification/AbstractNotification.php

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/Notification/IncompletePaymentNotification.php

Lines changed: 0 additions & 75 deletions
This file was deleted.

src/Notification/NotificationInterface.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/Notification/UnknownNotification.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/Factory/NotificationFactoryTest.php

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)