PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CodeIgniter Plugin for Z-Ray
Show CodeIgniter application information in Z-Ray
Author: By
Last change:
Date: 2 years ago
Size: 779 bytes
 

Contents

Class file image Download
<documentation title="Variable Names"> <standard> <![CDATA[ Private member variable names should be prefixed with an underscore and public/protected variable names should not. ]]> </standard> <code_comparison> <code title="Valid: Proper member variable names."> <![CDATA[ class Foo { public $<em>publicVar</em>; protected $<em>protectedVar</em>; private $<em>_privateVar</em>; } ]]> </code> <code title="Invalid: underscores used on public/protected variables and not used on private variables."> <![CDATA[ class Foo { public $<em>_publicVar</em>; protected $<em>_protectedVar</em>; private $<em>privateVar</em>; } ]]> </code> </code_comparison> </documentation>