You are here

class Bar in Coder 8.2

Same name in this branch
  1. 8.2 coder_sniffer/Drupal/Test/bad/bad.php \Bar
  2. 8.2 coder_sniffer/Drupal/Test/good/good.php \Bar
Same name and namespace in other branches
  1. 7.2 coder_sniffer/Test/bad/bad.php \Bar
  2. 7.2 coder_sniffer/Test/good/good.php \Bar

Hierarchy

Expanded class hierarchy of Bar

1 string reference to 'Bar'
good.php in coder_sniffer/Drupal/Test/good/good.php
This file contains all the valid notations for the drupal coding standard.

File

coder_sniffer/Drupal/Test/bad/bad.php, line 357

View source
class Bar {

  // Private properties must not have a prefix
  private $_secret = 1;

  // Public properties must not have a prefix
  protected $_foo = 1;

  // Public properties must not have a prefix
  public $_bar = 1;

  // Public static variables use camelCase.
  public static $base_path = NULL;

  // "var" keyword must no be used.
  var $x = 5;

}

Members

Namesort descending Modifiers Type Description Overrides
Bar::$base_path public static property
Bar::$x property
Bar::$_bar public property
Bar::$_foo protected property
Bar::$_secret private property