Search code examples
phpcoding-stylezend-framework2private

zend framework 2 underscore private


Will Zend Framework 2 continue to place underscores in front of private members and methods of classes? e.g:

class blah {
    private $_name;

    private function _doSomethingToName()
    {
    }
}

I see that they are still there in the dev release of ZF2.


Solution

  • Probably yes, accodring to the poll:

    There are currently 381 responses:

    • 57% vote "Yes" (to remove the underscores)
    • 38% vote "No" (to retain underscores)
    • 4% vote "No opinion"