You are here

class bad in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x tests/Drupal/bad/bad.php \bad

Hierarchy

Expanded class hierarchy of bad

File

tests/Drupal/bad/bad.php, line 357

View source
class bad {

  // 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
bad::$base_path public static property
bad::$x property
bad::$_bar public property
bad::$_foo protected property
bad::$_secret private property