Updates docs to use getter methods.

Continuing from #1892
```diff
- but this is not recommended usage.
+ __but this is not recommended usage.__
```