Restrict type of method parameter with two or more class names?
<p>We can restrict type of method parameters; for example, we should say that function parameter should be an instance of object described in class with name "Some Class".</p>

<pre><code>function some_function(Some_Class $object) {
}
</code></pre>

<p>Is there any php native posibilities to restrict method parameter with two or more classes? For examle, "Some Class" or "Some Class2" or "Some Class3".</p>

<p>Or maybe there is any way to restrict method parameter with classes which implements interface with name "Some_Interface"?</p>

<p>Thank you. </p>
