You are here

class Bar in Coder 7.2

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

Class declaration

Classes always have a multiline comment

Hierarchy

Expanded class hierarchy of Bar

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

File

coder_sniffer/Test/good/good.php, line 298
This file contains all the valid notations for the drupal coding standard.

View source
class Bar {

  // Private properties have no prefix.
  private $secret = 1;

  // Protected properties also don't have a prefix.
  protected $foo = 1;

  // Longer properties use camelCase naming.
  public $barProperty = 1;

  // Public static variables use camelCase, too.
  public static $basePath = NULL;

  /**
   * Enter description here ...
   */
  public function foo() {
  }

  /**
   * Enter description here ...
   */
  protected function barMethod() {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Bar::$barProperty public property
Bar::$basePath public static property
Bar::$foo protected property
Bar::$secret private property
Bar::barMethod protected function Enter description here ...
Bar::foo public function Enter description here ...