1 | <?php |
||
21 | final class NotificationChecker implements NotificationCheckerInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var NotificationAccessorInterface |
||
25 | */ |
||
26 | private $notificationAccessor; |
||
27 | |||
28 | /** |
||
29 | * @param NotificationAccessorInterface $notificationAccessor |
||
30 | */ |
||
31 | public function __construct(NotificationAccessorInterface $notificationAccessor) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | * |
||
39 | * @throws NotificationExpectationMismatchException |
||
40 | */ |
||
41 | public function checkCreationNotification($resource) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | * |
||
51 | * @throws NotificationExpectationMismatchException |
||
52 | */ |
||
53 | public function checkDeletionNotification($resource) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | * |
||
63 | * @throws NotificationExpectationMismatchException |
||
64 | */ |
||
65 | public function checkEditionNotification($resource) |
||
71 | |||
72 | /** |
||
73 | * @param string $message |
||
74 | * |
||
75 | * @throws NotificationExpectationMismatchException |
||
76 | */ |
||
77 | public function checkSuccessNotificationMessage($message) |
||
90 | |||
91 | /** |
||
92 | * @param string $resourceName |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | private function humanizeResourceName($resourceName) |
||
100 | } |
||
101 |