SHARE
TWEET

Snippet

a guest Sep 2nd, 2011 66 Never
  1. <?php
  2.  
  3. class Colour {
  4.        
  5. }
  6.  
  7. class Product {
  8.         public function setColour(Colour $oColour) {
  9.        
  10.         }
  11. }
  12. $product = new Product();
  13. $colour = new Colour($updates->colour);
  14. echo get_class($colour);
  15. $product->setColour($colour);
  16. ?>
RAW Paste Data
Top