Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Model/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 9 additions & 0 deletions src/Model/Matter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand All @@ -52,6 +60,7 @@ public function apiSerialize(): array
return [
'Title' => $this->title,
'Type' => $this->type,
'AccessLevel' => $this->accessLevel,
];
}
}
Loading