Skip to content

Commit

Permalink
add missing phpdoc attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sainthillier committed Dec 16, 2024
1 parent 89a262f commit 1c87612
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ public function getSourcePath(string $path): string
* @param string $path Image path.
*
* @return bool Whether the source file exists.
*
* @throws FileNotFoundException
*/
public function sourceFileExists(string $path): bool
{
Expand Down Expand Up @@ -328,6 +330,8 @@ public function getCachePathCallable(): ?\Closure
* @param array $params Image manipulation params.
*
* @return string Cache path.
*
* @throws FileNotFoundException
*/
public function getCachePath(string $path, array $params = []): string
{
Expand Down Expand Up @@ -525,6 +529,8 @@ public function getResponseFactory(): ?ResponseFactoryInterface
* @return mixed Image response.
*
* @throws \InvalidArgumentException
* @throws FileNotFoundException
* @throws FilesystemException
*/
public function getImageResponse(string $path, array $params): mixed
{
Expand All @@ -545,6 +551,7 @@ public function getImageResponse(string $path, array $params): mixed
*
* @return string Base64 encoded image.
*
* @throws FileNotFoundException
* @throws FilesystemException
*/
public function getImageAsBase64(string $path, array $params): string
Expand All @@ -567,6 +574,8 @@ public function getImageAsBase64(string $path, array $params): string
* @param array $params Image manipulation params.
*
* @throws \InvalidArgumentException
* @throws FileNotFoundException
* @throws FilesystemException
*/
public function outputImage(string $path, array $params): void
{
Expand Down

0 comments on commit 1c87612

Please sign in to comment.