class GetConstructorDummy

Hierarchy

Expanded class hierarchy of GetConstructorDummy

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php, line 195

Namespace

Symfony\Component\Serializer\Tests\Normalizer
View source
class GetConstructorDummy {
  protected $foo;
  private $bar;
  public function __construct($foo, $bar) {
    $this->foo = $foo;
    $this->bar = $bar;
  }
  public function getFoo() {
    return $this->foo;
  }
  public function getBar() {
    return $this->bar;
  }
  public function otherMethod() {
    throw new \RuntimeException("Dummy::otherMethod() should not be called");
  }

}

Members