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