title: Dynamicly creating class with trait binding
body: <p>I want to make use of traits in my project, and for multiple inheriance I want to use traits.</p>
  
  <p>So I created some traits to use eg: tItem_Epic, tItem_Weapon, Item_Driver</p>
  
  <p>When I create new class for Sword, I thought I could use eval to create class:</p>
  
  <pre><code>&lt;?php
  function new_item_class($type)
  {
      eval('class Item_'.ucfirst($type).' extends Item_Driver { use tItem_Epic, tItem_Weapon; }');
  }
  ?&gt;
  </code></pre>
  
  <p>This is an example. There are some more parameters that change the course of eval (like: item quality, etc.).</p>
  
  <p>Does this slow down the progress? Or should I create a file for every item type and call them when needed? which one will be faster?</p>