for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CloudyCity\UCMarketingSDK\Kernel\Traits;
trait HasSdkBaseInfo
{
/**
* @var string
*/
protected $username;
protected $password;
protected $token;
* @return string
protected function getUsername()
return $this->username;
}
* @param string $username
protected function setUsername($username)
$this->username = $username;
public function getPassword()
return $this->password;
* @param string $password
public function setPassword($password)
$this->password = $password;
protected function getToken()
return $this->token;
* @param string $token
protected function setToken($token)
$this->token = $token;
* @return array
protected function getAuthorization()
return [
'username' => $this->getUsername(),
'password' => $this->getPassword(),
'token' => $this->getToken(),
];