for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace leocata\m1Bot\Bot;
use leocata\M1\Api;
use leocata\M1\Authorization;
abstract class BaseBot
{
public $pass;
public $username;
private $auth;
private $apiWrapper;
final public function __construct()
$this->auth = new Authorization($this->username, $this->pass);
$this->apiWrapper = new Api();
$this->apiWrapper->setAuth($this->auth);
}
public function getAuth()
return $this->auth;
public function contactAccepted(\GearmanJob $job)
$job->sendComplete(true);
true
string
$result
GearmanJob::sendComplete()
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
$job->sendComplete(/** @scrutinizer ignore-type */ true);
public function contactRejected(\GearmanJob $job)
public function contactRequested(\GearmanJob $job)
public function delivery(\GearmanJob $job)
public function message(\GearmanJob $job)
public function messageDeleted(\GearmanJob $job)
public function read(\GearmanJob $job)
public function state(\GearmanJob $job)
public function typing(\GearmanJob $job)
/**
* @return Api
*/
public function getApiWrapper(): Api
return $this->apiWrapper;