mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 22:14:32 +02:00
Improved typing and phpdoc type annotations
This commit is contained in:
parent
3817ba774d
commit
b7c8ca2a48
39 changed files with 189 additions and 129 deletions
|
@ -78,9 +78,9 @@ abstract class AttachmentContainingDBElement extends AbstractNamedDBElement impl
|
|||
*********************************************************************************/
|
||||
|
||||
/**
|
||||
* Gets all attachments associated with this element.
|
||||
* Gets all attachments associated with this element.
|
||||
*
|
||||
* @return Collection<Attachment>
|
||||
* @phpstan-return Collection<int, AT>
|
||||
*/
|
||||
public function getAttachments(): Collection
|
||||
{
|
||||
|
|
|
@ -91,8 +91,9 @@ class AttachmentType extends AbstractStructuralDBElement
|
|||
/**
|
||||
* Get all attachments ("Attachment" objects) with this type.
|
||||
*
|
||||
* @return Collection|Attachment[] all attachments with this type, as a one-dimensional array of Attachments
|
||||
* @return Collection all attachments with this type, as a one-dimensional array of Attachments
|
||||
* (sorted by their names)
|
||||
* @phpstan-return Collection<int, Attachment>
|
||||
*/
|
||||
public function getAttachmentsForType(): Collection
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue