B.php 341 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace DeepCopy\f006;
  3. class B
  4. {
  5. public $cloned = false;
  6. private $bProp;
  7. public function getBProp()
  8. {
  9. return $this->bProp;
  10. }
  11. public function setBProp($prop)
  12. {
  13. $this->bProp = $prop;
  14. return $this;
  15. }
  16. public function __clone()
  17. {
  18. $this->cloned = true;
  19. }
  20. }