title: Php - Interface method with unknown number of parameters
body: <p>Suppose I have several classes with a method</p>
  
  <pre><code>public function foo (int $a, int $b, ..) {..}
  </code></pre>
  
  <p>where the number of parameters depends on the particular class (but is fixed for a specific class).</p>
  
  <p>Is there a way to put such a method in an interface so that all my classes could implement that interface?</p>
  
  <p>I don't think variadics can help here, because I would need to define all my <code>foo</code> implementations as</p>
  
  <pre><code>public function foo(int ...$ints) {..}
  </code></pre>
  
  <p>losing the information around how many parameters I need to have for a specific class.</p>
  
  <p>Any trickery that could be used?</p>
  
  <p>P.S. I would really like to avoid exceptions, so I can't just check if the number of arguments matches programmatically</p>