feat(setting): étendre ContentSource avec champs de test et domain model
- Ajouter testSlug, testChapterNumber, baseUrl sur ContentSource (entité, domain model, migration) - Exposer ces champs dans les Resources, Processors, Providers et Mapper - Mettre à jour store Pinia, repository API et composants Vue (form, card, liste)
This commit is contained in:
parent
b0ce36096f
commit
795cbeccc3
@@ -36,6 +36,21 @@ class ContentSource
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $ChapterSelector = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $testSlug = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?float $testChapterNumber = null;
|
||||
|
||||
#[ORM\Column(length: 20, options: ['default' => 'unknown'])]
|
||||
private string $healthStatus = 'unknown';
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?\DateTimeImmutable $healthLastTestedAt = null;
|
||||
|
||||
#[ORM\Column(type: 'text', nullable: true)]
|
||||
private ?string $healthLastError = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
@@ -119,6 +134,66 @@ class ContentSource
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTestSlug(): ?string
|
||||
{
|
||||
return $this->testSlug;
|
||||
}
|
||||
|
||||
public function setTestSlug(?string $testSlug): static
|
||||
{
|
||||
$this->testSlug = $testSlug;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTestChapterNumber(): ?float
|
||||
{
|
||||
return $this->testChapterNumber;
|
||||
}
|
||||
|
||||
public function setTestChapterNumber(?float $testChapterNumber): static
|
||||
{
|
||||
$this->testChapterNumber = $testChapterNumber;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHealthStatus(): string
|
||||
{
|
||||
return $this->healthStatus;
|
||||
}
|
||||
|
||||
public function setHealthStatus(string $healthStatus): static
|
||||
{
|
||||
$this->healthStatus = $healthStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHealthLastTestedAt(): ?\DateTimeImmutable
|
||||
{
|
||||
return $this->healthLastTestedAt;
|
||||
}
|
||||
|
||||
public function setHealthLastTestedAt(?\DateTimeImmutable $healthLastTestedAt): static
|
||||
{
|
||||
$this->healthLastTestedAt = $healthLastTestedAt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHealthLastError(): ?string
|
||||
{
|
||||
return $this->healthLastError;
|
||||
}
|
||||
|
||||
public function setHealthLastError(?string $healthLastError): static
|
||||
{
|
||||
$this->healthLastError = $healthLastError;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCleanBaseUrl(): string
|
||||
{
|
||||
return preg_replace(
|
||||
|
||||
Reference in New Issue
Block a user