Skip to content

Commit

Permalink
ContentService.php: Enh. phpDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendupuis committed Nov 4, 2024
1 parent ebf0e67 commit 98167a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/contracts/Repository/ContentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function loadVersionInfoListByContentInfo(array $contentInfoList): array;
*
* @param array<int, string> $languages A language priority, filters returned fields and is used as prioritized language code on
* returned value object. If not given all languages are returned.
* @param int|null $versionNo the version number. If not given the current version is returned from $contentInfo.
* @param int|null $versionNo The version number. If not given the current version is returned from $contentInfo.
* @param bool $useAlwaysAvailable Add Main language to $languages if true (default) and if {@see ContentInfo::$alwaysAvailable} is true.
*/
public function loadContentByContentInfo(ContentInfo $contentInfo, array $languages = null, ?int $versionNo = null, bool $useAlwaysAvailable = true): Content;
Expand All @@ -136,7 +136,7 @@ public function loadContentByVersionInfo(VersionInfo $versionInfo, array $langua
*
* @param array<int, string> $languages A language priority, filters returned fields and is used as prioritized language code on
* returned value object. If not given all languages are returned.
* @param int|null $versionNo the version number. If not given the current version is returned.
* @param int|null $versionNo The version number. If not given the current version is returned.
* @param bool $useAlwaysAvailable Add Main language to $languages if true (default) and if {@see ContentInfo::$alwaysAvailable} is true.
*/
public function loadContent(int $contentId, array $languages = null, ?int $versionNo = null, bool $useAlwaysAvailable = true): Content;
Expand Down Expand Up @@ -186,9 +186,9 @@ public function loadContentListByContentInfo(array $contentInfoList, array $lang
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException if there is a provided remote ID which exists in the system or multiple Locations
* are under the same parent or if the a field value is not accepted by the field type
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException if a field in the $contentCreateStruct is not valid.
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException If a required field is missing or is set to an empty value.
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException if a required field is missing or is set to an empty value.
*
* @param \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs an array of {@see \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct} for each location parent under which a location should be created for the content.
* @param \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs An array of {@see \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct} for each location parent under which a location should be created for the content.
* While optional, it's highly recommended to use Locations for content as a lot of features in the system is usually tied to the tree structure (including default Role policies).
* @param string[]|null $fieldIdentifiersToValidate List of field identifiers for partial validation or null
* for case of full validation. Empty identifiers array is equal to no validation.
Expand Down Expand Up @@ -526,7 +526,7 @@ public function validate(ValueObject $object, array $context, ?array $fieldIdent
/**
* Fetches Content items from the Repository filtered by the given conditions.
*
* @param array<int, string> $languages a list of language codes to be added as additional constraints.
* @param array<int, string> $languages A list of language codes to be added as additional constraints.
* If skipped, by default, unless SiteAccessAware layer has been disabled, languages set
* for a SiteAccess in a current context will be used.
*/
Expand All @@ -537,7 +537,7 @@ public function find(Filter $filter, ?array $languages = null): ContentList;
*
* Count total number of items returned by {@see ContentService::find()} with the same parameters.
*
* @param array<int, string> $languages a list of language codes to be added as additional constraints.
* @param array<int, string> $languages A list of language codes to be added as additional constraints.
* If skipped, by default, unless SiteAccessAware layer has been disabled, languages set
* for a SiteAccess in a current context will be used.
*/
Expand Down

0 comments on commit 98167a0

Please sign in to comment.