| 1 | <?php |
||
| 5 | use Net\Bazzline\Component\Curl\Option\OptionInterface; |
||
| 6 | |||
| 7 | class SetUsernameAndPassword implements OptionInterface |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $password; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $username; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $username |
||
| 17 | * @param string $password |
||
| 18 | */ |
||
| 19 | public function __construct($username, $password) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return int |
||
| 27 | */ |
||
| 28 | public function identifier() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | public function value() |
||
| 37 | { |
||
| 38 | return $this->username . ':' . $this->password; |
||
| 39 | } |
||
| 40 | } |