This commit is contained in:
wangjinlei
2024-07-17 09:23:45 +08:00
parent edf9deeb1a
commit 881ac3e056
1001 changed files with 41032 additions and 5452 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace PhpOffice\Math\Element;
class Semantics extends AbstractGroupElement
{
/**
* @var array<string, string>
*/
protected $annotations = [];
public function addAnnotation(string $encoding, string $annotation): self
{
$this->annotations[$encoding] = $annotation;
return $this;
}
public function getAnnotation(string $encoding): ?string
{
return $this->annotations[$encoding] ?? null;
}
/**
* @return array<string, string>
*/
public function getAnnotations(): array
{
return $this->annotations;
}
}