private function getVisibilityAsString() { if ($this->isProtected()) { return 'protected'; } if ($this->isPrivate()) { return 'private'; } return 'public'; }