Skip to content

Commit

Permalink
NGSTACK-836: clean up docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed May 29, 2024
1 parent 6153cd0 commit 30b01aa
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/Core/Search/Solr/FieldMapper/ParentChildFieldMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public function __construct(
private readonly int $childrenLimit = 99,
) {}

/**
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException
*/
public function accept(SPIContent $content, $languageCode): bool
{
$contentTypeId = $content->versionInfo->contentInfo->contentTypeId;
Expand All @@ -56,6 +59,10 @@ public function accept(SPIContent $content, $languageCode): bool
/**
* @param string $languageCode
*
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\BadStateException
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidCriterionArgumentException
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException
*
* @return \Ibexa\Contracts\Core\Search\Field[]
*/
public function mapFields(SPIContent $content, $languageCode): array
Expand All @@ -73,7 +80,10 @@ public function mapFields(SPIContent $content, $languageCode): array
}

/**
* @param array<string, mixed> $configuration
* @param array<string, mixed>|null $configuration
*
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\BadStateException
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidCriterionArgumentException
*
* @return \Ibexa\Contracts\Core\Search\Field[]
*/
Expand Down Expand Up @@ -136,9 +146,10 @@ private function getContentTypeIdentifier(int $contentTypeId): ?string
/**
* @param array<string, mixed> $configuration
*
* @return \Ibexa\Contracts\Core\Persistence\Content\ContentInfo[]
* @throws BadStateException
* @throws InvalidCriterionArgumentException
*
* @return \Ibexa\Contracts\Core\Persistence\Content\ContentInfo[]
*/
private function loadChildrenContentInfoList(
ContentInfo $contentInfo,
Expand Down

0 comments on commit 30b01aa

Please sign in to comment.