菜谱项目

B.php 250B

123456789101112131415161718192021
  1. <?php
  2. namespace DeepCopy\f001;
  3. class B extends A
  4. {
  5. private $bProp;
  6. public function getBProp()
  7. {
  8. return $this->bProp;
  9. }
  10. public function setBProp($prop)
  11. {
  12. $this->bProp = $prop;
  13. return $this;
  14. }
  15. }