Skip to content

Commit

Permalink
Add some missing docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Nov 30, 2019
1 parent 4ee25eb commit e754bb9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bundle/Converter/ContentParamConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ protected function getPropertyName(): string
return 'contentId';
}

/**
* {@inheritDoc}
*
* @throws \Netgen\EzPlatformSiteApi\API\Exceptions\TranslationNotMatchedException
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
* @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
*/
protected function loadValueObject(int $id): Content
{
return $this->loadService->loadContent($id);
Expand Down
7 changes: 7 additions & 0 deletions bundle/Converter/LocationParamConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ protected function getPropertyName(): string
return 'locationId';
}

/**
* {@inheritDoc}
*
* @throws \Netgen\EzPlatformSiteApi\API\Exceptions\TranslationNotMatchedException
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
* @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
*/
protected function loadValueObject(int $id): Location
{
return $this->loadService->loadLocation($id);
Expand Down
20 changes: 20 additions & 0 deletions bundle/Core/Site/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ public function __construct(ConfigResolverInterface $configResolver)
$this->configResolver = $configResolver;
}

/**
* @param string $property
*
* @throws \eZ\Publish\API\Repository\Exceptions\PropertyNotFoundException
*
* @return mixed
*/
public function __get(string $property)
{
switch ($property) {
Expand All @@ -43,11 +50,24 @@ public function __get(string $property)
throw new PropertyNotFoundException($property, \get_class($this));
}

/**
* @param string $property
* @param $value
*
* @throws \eZ\Publish\API\Repository\Exceptions\PropertyReadOnlyException
*/
public function __set(string $property, $value): void
{
throw new PropertyReadOnlyException($property, \get_class($this));
}

/**
* @param string $property
*
* @throws \eZ\Publish\API\Repository\Exceptions\PropertyNotFoundException
*
* @return bool
*/
public function __isset(string $property): bool
{
switch ($property) {
Expand Down
2 changes: 2 additions & 0 deletions bundle/Routing/ContentUrlAliasRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public function matchRequest(Request $request): array
* @param mixed $name
* @param mixed $parameters
* @param mixed $referenceType
*
* @return string
*/
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH): string
{
Expand Down
2 changes: 2 additions & 0 deletions bundle/Routing/LocationUrlAliasRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function matchRequest(Request $request): array
* @param mixed $name
* @param mixed $parameters
* @param mixed $referenceType
*
* @return string
*/
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH): string
{
Expand Down

0 comments on commit e754bb9

Please sign in to comment.