Create a customized myers diff based system for snip content
This commit is contained in:
@ -32,6 +32,9 @@ class SnipContent
|
||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||
private ?string $text = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?array $diff = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->children = new ArrayCollection();
|
||||
@ -107,4 +110,16 @@ class SnipContent
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDiff(): ?array
|
||||
{
|
||||
return $this->diff;
|
||||
}
|
||||
|
||||
public function setDiff(?array $diff): static
|
||||
{
|
||||
$this->diff = $diff;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user