Import and Export work with attribute tags

This commit is contained in:
2025-03-17 20:45:49 +11:00
parent ce66dcb2b5
commit b35b44b2b8
3 changed files with 39 additions and 20 deletions

View File

@@ -178,9 +178,13 @@ class Attribute implements \Countable, \ArrayAccess, \Iterator
return $this->name;
}
public function addValue(string $value): void
public function addValue(string $tag,string $value): void
{
$this->values->push($value);
$this->_values->put(
$tag,
$this->_values
->get($tag,collect())
->push($value));
}
public function current(): mixed