From 220ffc910b53b756df6898c8d250990f9c118152 Mon Sep 17 00:00:00 2001 From: Mikkel Ricky Date: Wed, 4 Nov 2026 15:46:04 +0100 Subject: [PATCH] Added matter properties --- src/Model/Document.php | 2 ++ src/Model/Matter.php | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/Model/Document.php b/src/Model/Document.php index feb09f2..3a26ced 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -6,6 +6,8 @@ final class Document extends AbstractF2Item { + public const int TITLE_MAX_LENGTH = 255; + public string $title; public string $description = ''; public ?\DateTimeImmutable $createdDate = null; diff --git a/src/Model/Matter.php b/src/Model/Matter.php index 40f34a8..70c040b 100644 --- a/src/Model/Matter.php +++ b/src/Model/Matter.php @@ -11,9 +11,16 @@ final class Matter extends AbstractF2Item public const string TYPE_INBOUND = 'Inbound'; public const string TYPE_OUTBOUND = 'Outbound'; + public const string ACCESS_LEVEL_INVOLVED = 'Involved'; + public const string ACCESS_LEVEL_UNIT = 'Unit'; + public const string ACCESS_LEVEL_ALL = 'All'; + + public const int TITLE_MAX_LENGTH = 255; + public ?string $matterNumber = null; public ?string $title = null; public ?string $type = null; + public ?string $accessLevel = null; public ?string $caseNumber = null; public ?\DateTimeImmutable $createdDate = null; public ?\DateTimeImmutable $modifiedDate = null; @@ -32,6 +39,7 @@ public function setFromSimpleXMLElement(\SimpleXMLElement $sxe): static $this->caseNumber = (string) $sxe->CaseNumber; $this->title = (string) $sxe->Title; $this->type = (string) $sxe->Type; + $this->accessLevel = (string) $sxe->AccessLevel; $this->createdDate = $this->createDateTime($sxe->CreatedDate); $this->modifiedDate = $this->createDateTime($sxe->ModifiedDate); $this->createdBy = Party::fromSimpleXMLElement($sxe->CreatedBy); @@ -52,6 +60,7 @@ public function apiSerialize(): array return [ 'Title' => $this->title, 'Type' => $this->type, + 'AccessLevel' => $this->accessLevel, ]; } }