Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions component/Port/MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,43 @@

namespace Phant\Client\Port;

use Phant\Error\NotFound;

interface MySQL
{
public function execute(
string $query,
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,
Expand Down
8 changes: 8 additions & 0 deletions component/Port/S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Phant\Client\Port;

use Phant\Error\NotFound;

interface S3
{
public function setObject(
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Loading