Protected and private properties should not be available to JS context. Instead call __get function, if the property is not accessible.