You are here

class Foo in Coder 7.2

Same name and namespace in other branches
  1. 8.3 tests/Drupal/Commenting/FileCommentUnitTest.11.inc \Foo
  2. 8.2 coder_sniffer/Drupal/Test/Commenting/FileCommentUnitTest.11.inc \Foo
  3. 8.2 coder_sniffer/Drupal/Test/good/good.php \Foo
  4. 8.3.x tests/Drupal/Commenting/FileCommentUnitTest.11.inc \Foo

Hierarchy

  • class \Foo implements \FooInterface

Expanded class hierarchy of Foo

File

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

View source
class Foo implements FooInterface {

  /**
   * {@inheritdoc}
   */
  public function test() {
  }

  /**
   * {@inheritdoc}
   *
   * Some additional documentation here.
   */
  public function test2() {
  }

  /**
   * Return docs are allowed to use $this.
   *
   * @return $this
   *   This object for chaining method calls.
   */
  public function test3() {
    return $this;
  }

  /**
   * Returns the string representatuion of this object.
   */
  public function __toString() {
    return 'foo';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Foo::test public function
Foo::test2 public function Some additional documentation here.
Foo::test3 public function Return docs are allowed to use $this.
Foo::__toString public function Returns the string representatuion of this object.