. */ namespace Xibo\Event; class TagEditEvent extends Event { public static $NAME = 'tag.edit.event'; /** * @var int */ private $tagId; /** * @var string */ private $oldTag; /** * @var string */ private $newTag; public function __construct(int $tagId, ?string $oldTag = null, ?string $newTag = null) { $this->tagId = $tagId; $this->oldTag = $oldTag; $this->newTag = $newTag; } /** * @return int */ public function getTagId(): int { return $this->tagId; } /** * @return string */ public function getOldTag(): string { return $this->oldTag; } /** * @return string */ public function getNewTag(): string { return $this->newTag; } }