Backend\Core\Engine\User::__construct PHP Method

__construct() public method

public __construct ( integer $userId = null, string $email = null )
$userId integer The id of the user.
$email string The e-mail address of the user.
    public function __construct($userId = null, $email = null)
    {
        if ($userId !== null) {
            $this->loadUser((int) $userId);
        }
        if ($email !== null) {
            $this->loadUserByEmail($email);
        }
    }