Variable Names

Private member variable names should be prefixed with an underscore and public/protected variable names should not.

Valid: Proper member variable names.

class Foo { public $<em>publicVar</em>; protected $<em>protectedVar</em>; private $<em>_privateVar</em>; }

Invalid: underscores used on public/protected variables and not used on private variables.

class Foo { public $<em>_publicVar</em>; protected $<em>_protectedVar</em>; private $<em>privateVar</em>; }