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