You are here

class FooObject in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/Extension/SandboxTest.php \FooObject

Hierarchy

Expanded class hierarchy of FooObject

File

vendor/twig/twig/test/Twig/Tests/Extension/SandboxTest.php, line 189

View source
class FooObject {
  public static $called = array(
    '__toString' => 0,
    'foo' => 0,
    'getFooBar' => 0,
  );
  public $bar = 'bar';
  public static function reset() {
    self::$called = array(
      '__toString' => 0,
      'foo' => 0,
      'getFooBar' => 0,
    );
  }
  public function __toString() {
    ++self::$called['__toString'];
    return 'foo';
  }
  public function foo() {
    ++self::$called['foo'];
    return 'foo';
  }
  public function getFooBar() {
    ++self::$called['getFooBar'];
    return 'foobar';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FooObject::$bar public property
FooObject::$called public static property
FooObject::foo public function
FooObject::getFooBar public function
FooObject::reset public static function
FooObject::__toString public function