Fix: Add missing method visibility in documentation examples

PSR-2, that's why.