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

Commit 832f8c0

Browse files
Add interface params. Update comments
1 parent 536d7b8 commit 832f8c0

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

src/Config.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Pavlusha311245\UnitPhpSdk\Config\Route;
88
use Pavlusha311245\UnitPhpSdk\Interfaces\ConfigInterface;
99

10+
/**
11+
* This class contains Nginx Unit config data
12+
*/
1013
class Config implements ConfigInterface
1114
{
1215
private array $_listeners;
@@ -113,7 +116,7 @@ public function getUpstreams(): mixed
113116
*
114117
* @return void
115118
*/
116-
public function setApplicationLogPath()
119+
public function setApplicationLogPath($path)
117120
{
118121
// TODO: Implement setApplicationLogPath() method.
119122
// Implement functions from this source https://unit.nginx.org/configuration/#access-log
@@ -124,7 +127,7 @@ public function setApplicationLogPath()
124127
*
125128
* @return void
126129
*/
127-
public function setApplicationLogFormat()
130+
public function setApplicationLogFormat($format)
128131
{
129132
// TODO: Implement setApplicationLogFormat() method.
130133
// Implement functions from this source https://unit.nginx.org/configuration/#access-log

src/Config/Statistic.php

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

55
use Pavlusha311245\UnitPhpSdk\Interfaces\StatisticsInterface;
66

7+
/**
8+
* This class returns statistics from Nginx Unit
9+
*/
710
class Statistic implements StatisticsInterface
811
{
912
private array $_connections;

src/Interfaces/ConfigInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public function getApplication($applicationName);
1616

1717
public function getUpstreams();
1818

19-
public function setApplicationLogPath();
19+
public function setApplicationLogPath($path);
2020

21-
public function setApplicationLogFormat();
21+
public function setApplicationLogFormat($format);
2222

2323
public function toArray(): array;
2424
}

src/Unit.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use Pavlusha311245\UnitPhpSdk\Exceptions\UnitException;
77
use Pavlusha311245\UnitPhpSdk\Interfaces\UnitInterface;
88

9+
/**
10+
* This is main class of Nginx Unit manipulation
11+
*/
912
class Unit implements UnitInterface
1013
{
1114
private readonly string $socket;

0 commit comments

Comments
 (0)