Add trait dependency documentation and architecture diagrams

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-02 23:51:52 +00:00
parent 30537fcb6c
commit 2d36373bea
3 changed files with 52 additions and 0 deletions

View file

@ -29,6 +29,11 @@ use Symfony\Component\Serializer\Annotation\Groups;
/**
* Trait providing attachments functionality.
*
* Requirements:
* - Class using this trait should have $id property (e.g., via DBElementTrait)
* - Class may optionally have $master_picture_attachment property (via MasterAttachmentTrait)
* - Class should implement HasAttachmentsInterface
*/
trait AttachmentsTrait
{

View file

@ -34,6 +34,11 @@ use function count;
/**
* Trait for structural/hierarchical elements forming a tree structure.
*
* Requirements:
* - Class using this trait must have getName() method (e.g., via NamedElementTrait)
* - Class using this trait must have getID() method (e.g., via DBElementTrait)
* - Class should implement StructuralElementInterface
*/
trait StructuralElementTrait
{