A.php 341 B

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