This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Snippet

By: a guest on Sep 2nd, 2011  |  syntax: PHP  |  size: 0.23 KB  |  views: 66  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data