Improved typing and phpdoc type annotations

This commit is contained in:
Jan Böhmer 2023-06-18 15:37:42 +02:00
parent 3817ba774d
commit b7c8ca2a48
39 changed files with 189 additions and 129 deletions

View file

@ -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
{

View file

@ -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
{