diff --git a/component/Port/MySQL.php b/component/Port/MySQL.php index 20525dc..c4c19ce 100644 --- a/component/Port/MySQL.php +++ b/component/Port/MySQL.php @@ -4,6 +4,8 @@ namespace Phant\Client\Port; +use Phant\Error\NotFound; + interface MySQL { public function execute( @@ -11,22 +13,34 @@ public function execute( array $values = [] ): void; + /** + * @throws NotFound + */ public function getList( string $query, array $values = [] ): array; + /** + * @throws NotFound + */ public function getListByColumnValue( string $table, string $column, string|int|float|bool $value ): array; + /** + * @throws NotFound + */ public function get( string $query, array $values = [] ): array; + /** + * @throws NotFound + */ public function getByColumnValue( string $table, string $column, diff --git a/component/Port/S3.php b/component/Port/S3.php index ac301eb..4ca1c9e 100644 --- a/component/Port/S3.php +++ b/component/Port/S3.php @@ -4,6 +4,8 @@ namespace Phant\Client\Port; +use Phant\Error\NotFound; + interface S3 { public function setObject( @@ -12,11 +14,17 @@ public function setObject( string $body ): void; + /** + * @throws NotFound + */ public function getObject( string $bucket, string $key ): string; + /** + * @throws NotFound + */ public function deleteObject( string $bucket, string $key diff --git a/composer.json b/composer.json index b0ec56e..52e05b5 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "phant/client", "description": "Use client easily", "license": "MIT", - "keywords": ["Amazon S3 client"], + "keywords": ["MySQLclient","Amazon S3 client"], "authors": [ { "name": "Lenny ROUANET", @@ -15,8 +15,8 @@ "aws/aws-sdk-php": "3.*" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.0", - "phpstan/phpstan": "^1.4" + "friendsofphp/php-cs-fixer": "3.*", + "phpstan/phpstan": "2.*" }, "scripts": { "lint": "vendor/bin/php-cs-fixer fix ./ --rules=@PSR12",