<?php
namespace App\Domain\Entity;
use App\Domain\Entity\Behavior\Identifiable;
use Gedmo\Timestampable\Traits\Timestampable;
/**
* Class RevisionLog
*
* @package App\Domain\Entity
*/
class RevisionLog
{
use Identifiable;
use Timestampable;
public const CREATE = 'create';
public const DELETE = 'delete';
public const TRANSFER_COMMENT = 'transfer_comment';
public const TRANSFER_PICTURE = 'transfer_picture';
public const UPDATE = 'update';
public const VALIDATE = 'validate';
public const SELECT = 'select';
public const REFUSE = 'refuse_ownership_request';
public const ACCEPT = 'accept_ownership_request';
public function __construct(
public string $action,
public string $entity,
public ?Person $author = null,
public ?string $entityId = null,
public ?string $data = null,
public ?string $httpAgent = null,
) {}
}