You are here

VariadicTypeHintClass.php in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/VariadicTypeHintClass.php
View source
<?php

namespace Doctrine\Tests\Common\Proxy;


/**
 * Test asset class
 */
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;
  }

}

Classes

Namesort descending Description
VariadicTypeHintClass Test asset class