Skip to content

Commit

Permalink
Swtich to Parametrized trait
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Feb 9, 2024
1 parent 6e2fd06 commit f040f76
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/Entity/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ abstract class Record
{
use Tools\Identifier;
use Tools\Ownership;
use Tools\Parametrized;
use Tools\Hashable;

#[ORM\Column(type: 'string', length: 16, enumType: Type::class)]
Expand All @@ -51,9 +52,6 @@ abstract class Record
#[ORM\Column(type: 'boolean')]
protected bool $isFinished = false;

#[ORM\Column(type: 'json', nullable: true)]
protected ?array $params = null;

#[ORM\Column(type: 'text', nullable: true)]
protected ?string $note = null;

Expand Down Expand Up @@ -222,18 +220,6 @@ public function addParams(array $params): void
}


public function getParams(): array
{
return $this->params ?: [];
}


public function getParam(string $key): mixed
{
return $this->params[$key] ?? null;
}


public function getParamsUnified(): array
{
return Arrays::flatten($this->getParams());
Expand Down

0 comments on commit f040f76

Please sign in to comment.