for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
/**
* /src/Rest/Traits/RestResourceDelete.php
*
* @author TLe, Tarmo Leppänen <[email protected]>
*/
namespace App\Rest\Traits;
use App\Entity\EntityInterface;
* Trait RestResourceDelete
* @package App\Rest\Traits
trait RestResourceDelete
{
* Before lifecycle method for delete method.
* @param string $id
* @param EntityInterface $entity
public function beforeDelete(string &$id, EntityInterface $entity): void
}
* After lifecycle method for delete method.
public function afterDelete(string &$id, EntityInterface $entity): void