xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for credential Structure
* @subpackage Structs
*/
class Credential extends AbstractStructBase
{
/**
* The username
* @var string
*/
public $username;
/**
* The password
* @var string
*/
public $password;
/**
* Constructor method for credential
* @uses Credential::setUsername()
* @uses Credential::setPassword()
* @param string $username
* @param string $password
*/
public function __construct($username = null, $password = null)
{
$this
->setUsername($username)
->setPassword($password);
}
/**
* Get username value
* @return string|null
*/
public function getUsername()
{
return $this->username;
}
/**
* Set username value
* @param string $username
* @return Credential
*/
public function setUsername($username = null)
{
// validation for constraint: string
if (!is_null($username) && !is_string($username)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($username, true), gettype($username)), __LINE__);
}
$this->username = $username;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return Credential
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($password, true), gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO