for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Slince shipment tracker library
* @author Tao <[email protected]>
*/
namespace Slince\ShipmentTracking\DHLECommerce;
class Credential
{
* @var string
protected $clientId;
protected $password;
public function __construct($clientId, $password)
$this->clientId = $clientId;
$this->password = $password;
}
* @return mixed
public function getClientId()
return $this->clientId;
* @param mixed $clientId
* @return Credential
public function setClientId($clientId)
return $this;
public function getPassword()
return $this->password;
* @param mixed $password
public function setPassword($password)
* Converts the credential to an array
* @return array
public function toArray()
return [
'clientId' => $this->clientId,
'password' => $this->password
];