You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
add deleted shortcut method to notification builder
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user