This commit is contained in:
2021-03-15 14:08:01 +08:00
parent 1cb4d00910
commit f5391fa569
+17 -35
View File
@@ -197,8 +197,7 @@ abstract class BaseApplication extends Service
/** /**
* @param $name * @param $name
* @return mixed * @return mixed
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function clone($name): mixed public function clone($name): mixed
{ {
@@ -233,8 +232,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Logger * @return Logger
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getLogger(): Logger public function getLogger(): Logger
{ {
@@ -244,8 +242,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Producer * @return Producer
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getKafka(): Producer public function getKafka(): Producer
{ {
@@ -255,8 +252,7 @@ abstract class BaseApplication extends Service
/** /**
* @return \Redis|Redis * @return \Redis|Redis
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getRedis(): Redis|\Redis public function getRedis(): Redis|\Redis
{ {
@@ -275,8 +271,7 @@ abstract class BaseApplication extends Service
/** /**
* @return ErrorHandler * @return ErrorHandler
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getError(): ErrorHandler public function getError(): ErrorHandler
{ {
@@ -310,8 +305,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Response * @return Response
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getResponse(): Response public function getResponse(): Response
{ {
@@ -320,8 +314,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Request * @return Request
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getRequest(): Request public function getRequest(): Request
{ {
@@ -332,8 +325,7 @@ abstract class BaseApplication extends Service
/** /**
* @param $name * @param $name
* @return Table * @return Table
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getTable($name): Table public function getTable($name): Table
{ {
@@ -343,8 +335,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Config * @return Config
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getConfig(): Config public function getConfig(): Config
{ {
@@ -354,8 +345,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Router * @return Router
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getRouter(): Router public function getRouter(): Router
{ {
@@ -365,8 +355,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Event * @return Event
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getEvent(): Event public function getEvent(): Event
{ {
@@ -376,8 +365,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Jwt * @return Jwt
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getJwt(): Jwt public function getJwt(): Jwt
{ {
@@ -387,8 +375,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Server * @return Server
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getServer(): Server public function getServer(): Server
{ {
@@ -398,8 +385,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Http|Packet|Receive|Websocket|null * @return Http|Packet|Receive|Websocket|null
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getSwoole(): Packet|Websocket|Receive|Http|null public function getSwoole(): Packet|Websocket|Receive|Http|null
{ {
@@ -409,9 +395,7 @@ abstract class BaseApplication extends Service
/** /**
* @return SAnnotation * @return SAnnotation
* @throws ComponentException * @throws Exception
* @throws ReflectionException
* @throws NotFindClassException
*/ */
public function getAttributes(): SAnnotation public function getAttributes(): SAnnotation
{ {
@@ -421,8 +405,7 @@ abstract class BaseApplication extends Service
/** /**
* @return Async * @return Async
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getAsync(): Async public function getAsync(): Async
{ {
@@ -432,8 +415,7 @@ abstract class BaseApplication extends Service
/** /**
* @return ObjectPool * @return ObjectPool
* @throws ReflectionException * @throws Exception
* @throws NotFindClassException|ComponentException
*/ */
public function getObject(): ObjectPool public function getObject(): ObjectPool
{ {