Skip to content

LinkDTO #101

Description

@derpixler

API Reference: Ticket Links

readonly class LinkDTO implements DTOInterface. Represents a link between two objects (typically tickets) in Zammad. Links have a type (normal, parent, child) and connect a source object to a target object.

Properties:

Field Type Required Notes
id ?int
link_type string yes normal, parent, child
link_object_source string yes source object type, e.g. 'Ticket'
link_object_source_value ?int source object ID
link_object_target string yes target object type
link_object_target_value ?int target object ID

Does NOT use HasTimestamps — links have no date fields. fromArray() uses Cast::string() for the string fields.

Acceptance Criteria

  • Testing: LinkDTOTest — roundtrip for all three link types (normal, parent, child), null omission on optional fields
  • Documentation in README: README — $client->link()->list('Ticket', 1) example

Depends on

Produces

  • LinkDTO

Testing

  • LinkDTOTest — roundtrip fromArraytoArray for all three link types (normal, parent, child), null omission on optional fields

Documentation in README

  • Ticket Linking example in "Quick Start" — show $client->link()->list('Ticket', 1) and add() / remove() usage

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions