Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed May 27, 2019
1 parent 8343a13 commit a5a431c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Process/Socket/AbstractTcpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function run($arg)
if(!$client){
return;
}
if($this->getConfig()->isAsyncCallBack()){
if($this->getConfig()->isAsyncCallback()){
go(function ()use($client){
try{
$this->onAccept($client);
Expand Down
2 changes: 1 addition & 1 deletion src/Process/Socket/AbstractUnixProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function run($arg)
if(!$client){
return;
}
if($this->getConfig()->isAsyncCallBack()){
if($this->getConfig()->isAsyncCallback()){
go(function ()use($client){
try{
$this->onAccept($client);
Expand Down
12 changes: 6 additions & 6 deletions src/Process/Socket/TcpProcessConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TcpProcessConfig extends Config
{
protected $listenAddress = '0.0.0.0';
protected $listenPort;
protected $asyncCallBack = true;
protected $asyncCallback = true;

/**
* @return string
Expand Down Expand Up @@ -46,17 +46,17 @@ public function setListenPort($listenPort): void
/**
* @return bool
*/
public function isAsyncCallBack(): bool
public function isAsyncCallback(): bool
{
return $this->asyncCallBack;
return $this->asyncCallback;
}

/**
* @param bool $asyncCallBack
* @param bool $asyncCallback
*/
public function setAsyncCallBack(bool $asyncCallBack): void
public function setAsyncCallback(bool $asyncCallback): void
{
$this->asyncCallBack = $asyncCallBack;
$this->asyncCallback = $asyncCallback;
}

}
12 changes: 6 additions & 6 deletions src/Process/Socket/UnixProcessConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class UnixProcessConfig extends Config
{
protected $socketFile;
protected $asyncCallBack = true;
protected $asyncCallback = true;

/**
* @return mixed
Expand All @@ -30,16 +30,16 @@ public function setSocketFile($socketFile): void
/**
* @return bool
*/
public function isAsyncCallBack(): bool
public function isAsyncCallback(): bool
{
return $this->asyncCallBack;
return $this->asyncCallback;
}

/**
* @param bool $asyncCallBack
* @param bool $asyncCallback
*/
public function setAsyncCallBack(bool $asyncCallBack): void
public function setAsyncCallback(bool $asyncCallback): void
{
$this->asyncCallBack = $asyncCallBack;
$this->asyncCallback = $asyncCallback;
}
}

0 comments on commit a5a431c

Please sign in to comment.