You are here

class VariadicTypeHintClass in Plug 7

Test asset class

Hierarchy

Expanded class hierarchy of VariadicTypeHintClass

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/VariadicTypeHintClass.php, line 8

Namespace

Doctrine\Tests\Common\Proxy
View source
class VariadicTypeHintClass {
  public $types;
  public $foo;
  public $bar;
  public $baz;

  /**
   * @param ...$types
   */
  public function addType(...$types) {
    $this->types = $types;
  }
  public function addTypeWithMultipleParameters($foo, $bar, ...$baz) {
    $this->foo = $foo;
    $this->bar = $bar;
    $this->baz = $baz;
  }

}

Members