ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Password.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2018 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3 
4 namespace ILIAS\Data;
5 
13 class Password
14 {
15 
19  private $pass;
20 
21  public function __construct($pass)
22  {
23  if (!is_string($pass)) {
24  throw new \InvalidArgumentException('Invalid value for $pass');
25  }
26  $this->pass = $pass;
27  }
28 
34  public function toString()
35  {
36  return $this->pass;
37  }
38 }
A password is used as part of credentials for authentication.
Definition: Password.php:13
toString()
Get the password-string.
Definition: Password.php:34