class Foo

Same name in this branch

Hierarchy

  • class \Foo implements \Iterator

Expanded class hierarchy of Foo

42 string references to 'Foo'
AutoExpireFlashBagTest::testAll in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php
AutoExpireFlashBagTest::testPeekAll in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php
AutoExpireFlashBagTest::testSet in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php
ClassLoaderTest::testAddPrefix in drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/Tests/ClassLoaderTest.php
ClassLoaderTest::testGetPrefixes in drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/Tests/ClassLoaderTest.php

... See full list

File

drupal/core/vendor/twig/twig/test/Twig/Tests/integrationTest.php, line 149

View source
class Foo implements Iterator {
  const BAR_NAME = 'bar';
  public $position = 0;
  public $array = array(
    1,
    2,
  );
  public function bar($param1 = null, $param2 = null) {
    return 'bar' . ($param1 ? '_' . $param1 : '') . ($param2 ? '-' . $param2 : '');
  }
  public function getFoo() {
    return 'foo';
  }
  public function getSelf() {
    return $this;
  }
  public function is() {
    return 'is';
  }
  public function in() {
    return 'in';
  }
  public function not() {
    return 'not';
  }
  public function strToLower($value) {
    return strtolower($value);
  }
  public function rewind() {
    $this->position = 0;
  }
  public function current() {
    return $this->array[$this->position];
  }
  public function key() {
    return 'a';
  }
  public function next() {
    ++$this->position;
  }
  public function valid() {
    return isset($this->array[$this->position]);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Foo::$array public property
Foo::$position public property
Foo::bar public function
Foo::BAR_NAME constant
Foo::current public function
Foo::getFoo public function
Foo::getSelf public function
Foo::in public function
Foo::is public function
Foo::key public function
Foo::next public function
Foo::not public function
Foo::rewind public function
Foo::strToLower public function
Foo::valid public function