Use __construct for constructor

This commit is contained in:
Jakub Vrana 2018-01-16 20:05:07 +01:00
parent 756e304c92
commit 16e05167a4

View file

@ -7,14 +7,14 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerLoginSqlite { class AdminerLoginSqlite {
var $login; /** @access protected */
var $password_hash; var $login, $password_hash;
/** /** Set allowed credentials
* @param string * @param string
* @param string result of password_hash * @param string result of password_hash
*/ */
function AdminerLoginSqlite($login, $password_hash) { function __construct($login, $password_hash) {
$this->login = $login; $this->login = $login;
$this->password_hash = $password_hash; $this->password_hash = $password_hash;
} }