title: PHP Error handling missing arguments
body: <p>I am currently developing my PHP SDK to interact with a REST API. Let's say the API can create a 'car' model. To create a car I would write something like this...</p>
  
  <pre><code>$car = $api-&gt;create('car', array(
     'wheels' =&gt; 6,
     'color'  =&gt; 'blue'
  ));
  </code></pre>
  
  <p>If another developer downloads my SDK and tries to create a car model incorrectly and forgets to include required arguments. How can I throw an exception via the SDK to notify the developer of missing arguments, other than them seeing a PHP error like <code>Warning:  Missing argument 1 for BMW::create()</code> which does not include many details.</p>