From 3196d45bc74b1be9ada23982d5a497c989117ec5 Mon Sep 17 00:00:00 2001 From: Lenny ROUANET Date: Wed, 26 Aug 2026 09:39:48 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=9D=20Annotations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/Port/MySQL.php | 14 ++++++++++++++ component/Port/S3.php | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/component/Port/MySQL.php b/component/Port/MySQL.php index 20525dc..6d3490c 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..80c1a6e 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 From 30062363a0e43876a8ee71b13a14b338d8c92572 Mon Sep 17 00:00:00 2001 From: Lenny ROUANET Date: Wed, 26 Aug 2026 09:43:48 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20composer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", From 4de01b5b8aeacc622e6f15bc737814554fc72e1b Mon Sep 17 00:00:00 2001 From: Lenny ROUANET Date: Wed, 26 Aug 2026 09:43:54 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20CS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/Port/MySQL.php | 24 ++++++++++++------------ component/Port/S3.php | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/component/Port/MySQL.php b/component/Port/MySQL.php index 6d3490c..c4c19ce 100644 --- a/component/Port/MySQL.php +++ b/component/Port/MySQL.php @@ -13,34 +13,34 @@ public function execute( array $values = [] ): void; - /** - * @throws NotFound - */ + /** + * @throws NotFound + */ public function getList( string $query, array $values = [] ): array; - /** - * @throws NotFound - */ + /** + * @throws NotFound + */ public function getListByColumnValue( string $table, string $column, string|int|float|bool $value ): array; - /** - * @throws NotFound - */ + /** + * @throws NotFound + */ public function get( string $query, array $values = [] ): array; - /** - * @throws NotFound - */ + /** + * @throws NotFound + */ public function getByColumnValue( string $table, string $column, diff --git a/component/Port/S3.php b/component/Port/S3.php index 80c1a6e..4ca1c9e 100644 --- a/component/Port/S3.php +++ b/component/Port/S3.php @@ -14,17 +14,17 @@ public function setObject( string $body ): void; - /** - * @throws NotFound - */ + /** + * @throws NotFound + */ public function getObject( string $bucket, string $key ): string; - /** - * @throws NotFound - */ + /** + * @throws NotFound + */ public function deleteObject( string $bucket, string $key