add deleted shortcut method to notification builder

This commit is contained in:
KHOUBZA Younes
2022-06-06 09:16:39 +01:00
parent 41c0805810
commit 291343b6f5
2 changed files with 15 additions and 0 deletions
@@ -434,6 +434,14 @@ class NotificationBuilder implements NotificationBuilderInterface
return $this->operation('saved', $resource);
}
/**
* {@inheritdoc}
*/
public function deleted($resource = null)
{
return $this->operation('deleted', $resource);
}
/**
* {@inheritdoc}
*/
@@ -249,6 +249,13 @@ interface NotificationBuilderInterface
*/
public function saved($resource = null);
/**
* @param object|string|null $resource
*
* @return static
*/
public function deleted($resource = null);
/**
* @param StampInterface[] $stamps
*