for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Pachico\MaxMind\MinFraudChargeback. (https://github.com/pachico/maxmind-minfraud-chargeback)
*
* @link https://github.com/pachico/maxmind-minfraud-chargeback for the canonical source repository
* @copyright Copyright (c) 2016-2017 Mariano F.co Benítez Mulet. (https://github.com/pachico/)
* @license https://raw.githubusercontent.com/pachico/maxmind-minfraud-chargeback/master/LICENSE.md MIT
*/
namespace Pachico\MaxMind\MinFraudChargeback\Auth;
use Webmozart\Assert\Assert;
* Simple ValueObjet for pairing user and password
class Credential
{
* @var string
protected $user;
protected $password;
* @param string $user
* @param string $password
* @throws InvalidArgumentException
public function __construct($user, $password)
Assert::stringNotEmpty($user);
Assert::stringNotEmpty($password);
$this->user = $user;
$this->password = $password;
}
* @return string
public function getUser()
return $this->user;
public function getPassword()
return $this->password;