Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 015693e

Browse files
Merge tag '0.2.0' into develop
Added 0.2.0
2 parents a43fec1 + 10c0cbb commit 015693e

File tree

7 files changed

+25
-4
lines changed

7 files changed

+25
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# CHANGELOG
22

3+
## v0.2.0 - [2023/07/16]
4+
5+
- Added new method `getListenerByPort`
6+
- Added methods for implementation
7+
- `setApplicationLogPath($path)`
8+
- `setApplicationLogFormat($format)`
9+
- Replaced arrays to object in Route
10+
- Updated doc
11+
312
## v0.1.0 - [2023/07/13] (Experimental version)
413

514
- Created project

src/Config/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Pavlusha311245\UnitPhpSdk\Config;
44

55
/**
6-
* Application class
6+
* This class presents "application" section from config
77
*/
88
class Application
99
{

src/Config/Listener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Pavlusha311245\UnitPhpSdk\Exceptions\UnitException;
66

7+
/**
8+
* This class presents "listeners" section from config
9+
*/
710
class Listener
811
{
912
private string $_link;

src/Config/Route.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Pavlusha311245\UnitPhpSdk\Config\Routes\RouteBlock;
66

7+
/**
8+
* This class presents "routes" section from config
9+
*/
710
class Route
811
{
912
private array $_routeBlocks;

src/Enums/HttpSchemeEnum.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Pavlusha311245\UnitPhpSdk\Enums;
44

5+
/**
6+
* List of HTTP schemes
7+
*/
58
enum HttpSchemeEnum
69
{
710
case HTTP;

src/Exceptions/UnitException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Exception;
66

7+
/**
8+
* Custom exception
9+
*/
710
class UnitException extends Exception
811
{
912
// TODO: Implement

src/Interfaces/StatisticsInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
interface StatisticsInterface
66
{
7-
public function getConnections();
7+
public function getConnections(): array;
88

9-
public function getRequests();
9+
public function getRequests(): array;
1010

11-
public function getApplications();
11+
public function getApplications(): array;
1212
}

0 commit comments

Comments
 (0)