File tree Expand file tree Collapse file tree 6 files changed +16
-4
lines changed Expand file tree Collapse file tree 6 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 3
3
namespace Pavlusha311245 \UnitPhpSdk \Config ;
4
4
5
5
/**
6
- * Application class
6
+ * This class presents "application" section from config
7
7
*/
8
8
class Application
9
9
{
Original file line number Diff line number Diff line change 4
4
5
5
use Pavlusha311245 \UnitPhpSdk \Exceptions \UnitException ;
6
6
7
+ /**
8
+ * This class presents "listeners" section from config
9
+ */
7
10
class Listener
8
11
{
9
12
private string $ _link ;
Original file line number Diff line number Diff line change 4
4
5
5
use Pavlusha311245 \UnitPhpSdk \Config \Routes \RouteBlock ;
6
6
7
+ /**
8
+ * This class presents "routes" section from config
9
+ */
7
10
class Route
8
11
{
9
12
private array $ _routeBlocks ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace Pavlusha311245 \UnitPhpSdk \Enums ;
4
4
5
+ /**
6
+ * List of HTTP schemes
7
+ */
5
8
enum HttpSchemeEnum
6
9
{
7
10
case HTTP ;
Original file line number Diff line number Diff line change 4
4
5
5
use Exception ;
6
6
7
+ /**
8
+ * Custom exception
9
+ */
7
10
class UnitException extends Exception
8
11
{
9
12
// TODO: Implement
Original file line number Diff line number Diff line change 4
4
5
5
interface StatisticsInterface
6
6
{
7
- public function getConnections ();
7
+ public function getConnections (): array ;
8
8
9
- public function getRequests ();
9
+ public function getRequests (): array ;
10
10
11
- public function getApplications ();
11
+ public function getApplications (): array ;
12
12
}
You can’t perform that action at this time.
0 commit comments