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

__construct() public method

public __construct ( integer $userId = null )
$userId integer If you provide a userId, the object will be loaded with the data for this user.
    public function __construct($userId = null)
    {
        // if a user id is given we will load the user in this object
        if ($userId !== null) {
            $this->loadUser($userId);
        }
    }