菜谱项目

A.php 210B

12345678910111213141516171819
  1. <?php
  2. namespace DeepCopy\f008;
  3. class A
  4. {
  5. private $foo;
  6. public function __construct($foo)
  7. {
  8. $this->foo = $foo;
  9. }
  10. public function getFoo()
  11. {
  12. return $this->foo;
  13. }
  14. }