src/Entity/CRM/AudioEditJob.php line 10
<?phpnamespace App\Entity\CRM;use App\Repository\CRM\AudioEditJobRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: AudioEditJobRepository::class)]class AudioEditJob{public const TYPE_TRIM = 'trim';public const TYPE_CUT = 'cut';public const TYPE_EXPORT = 'export';public const TYPE_CONVERT = 'convert';public const STATUS_PENDING = 'pending';public const STATUS_PROCESSING = 'processing';public const STATUS_COMPLETED = 'completed';public const STATUS_FAILED = 'failed';#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'jobs')]#[ORM\JoinColumn(nullable: false)]private ?AudioAsset $audioAsset = null;#[ORM\Column(length: 20)]private string $type;#[ORM\Column(type: Types::JSON)]private array $parameters = [];#[ORM\Column(length: 20)]private string $status = self::STATUS_PENDING;#[ORM\Column(length: 255, nullable: true)]private ?string $outputPath = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $log = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private \DateTimeInterface $createdAt;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $startedAt = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $finishedAt = null;public function __construct(){$this->createdAt = new \DateTime();}public function getId(): ?int{return $this->id;}public function getAudioAsset(): ?AudioAsset{return $this->audioAsset;}public function setAudioAsset(?AudioAsset $audioAsset): self{$this->audioAsset = $audioAsset;return $this;}public function getType(): string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function getParameters(): array{return $this->parameters;}public function setParameters(array $parameters): self{$this->parameters = $parameters;return $this;}public function getStatus(): string{return $this->status;}public function setStatus(string $status): self{$this->status = $status;return $this;}public function getOutputPath(): ?string{return $this->outputPath;}public function setOutputPath(?string $outputPath): self{$this->outputPath = $outputPath;return $this;}public function getLog(): ?string{return $this->log;}public function setLog(?string $log): self{$this->log = $log;return $this;}public function getCreatedAt(): \DateTimeInterface{return $this->createdAt;}public function getStartedAt(): ?\DateTimeInterface{return $this->startedAt;}public function setStartedAt(?\DateTimeInterface $startedAt): self{$this->startedAt = $startedAt;return $this;}public function getFinishedAt(): ?\DateTimeInterface{return $this->finishedAt;}public function setFinishedAt(?\DateTimeInterface $finishedAt): self{$this->finishedAt = $finishedAt;return $this;}}