mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-20 09:09:33 +00:00
Add trait dependency documentation and architecture diagrams
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
parent
30537fcb6c
commit
2d36373bea
3 changed files with 52 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue