菜谱项目

A.php 435B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace DeepCopy\f002;
  3. class A
  4. {
  5. private $prop1;
  6. private $prop2;
  7. public function getProp1()
  8. {
  9. return $this->prop1;
  10. }
  11. public function setProp1($prop)
  12. {
  13. $this->prop1 = $prop;
  14. return $this;
  15. }
  16. public function getProp2()
  17. {
  18. return $this->prop2;
  19. }
  20. public function setProp2($prop)
  21. {
  22. $this->prop2 = $prop;
  23. return $this;
  24. }
  25. }