title: Is it possible to use interface parameters in PHP functions / methods
body: <p>I was wondering if it is possible to use interface parameters in PHP functions / methods.</p>
  
  <p>I'm used to coding in .Net and using .Net this is possible, such as having the following interface:</p>
  
  <pre><code>interface IVehicleDataProvider
  {
      public void Create(IVehicle Vehicle);
  }
  </code></pre>
  
  <p>Then I could implement this in a class as such:</p>
  
  <pre><code>class CarDataProvider : IVehicleDataProvider
  {
      public void Create(Car Car)
      {
          //do something
      }
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>class TruckDataProvider : IVehicleDataProvider
  {
      public void Create(Truck Truck)
      {
          //do something
      }
  }
  </code></pre>
  
  <p>as long as Car or Truck implements an IVehicle interface. </p>
  
  <p>Can the same thing be done in PHP?</p>