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