<?php
namespace App\Domain\Entity;
use App\Domain\Entity\Behavior\Identifiable;
use Gedmo\Timestampable\Traits\Timestampable;
/**
* Class Log
*
* @package App\Domain\Entity
*/
class Log
{
use Identifiable;
use Timestampable;
public const CREATE = 'create';
public const DELETE = 'delete';
public const UPDATE = 'update';
public const VALIDATE = 'validate';
public const REQUEST_RESET_PASSWORD_ERROR = 'request_reset_password_error';
public const STRIPE_ERROR = 'stripe_error';
public const FIREBASE_EMAIL_NOT_FOUND = 'firebase_email_not_found';
public const PICTURE_ACTION = 'picture_action';
public const CLICK = 'click';
public const REFERENT_SUGGESTION = 'referent_suggestion';
public const CONTACT_PRO = 'contact_pro';
/**
* @param string $action
* @param string $entity
* @param Person|null $author
* @param string|null $entityId
* @param string|null $data
* @param string|null $httpAgent
*/
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,
) {
}
public function getCreatedAt()
{
return $this->createdAt;
}
}