菜谱项目

FactoryCall.php 611B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. Copyright (c) 2009 hamcrest.org
  4. */
  5. class FactoryCall
  6. {
  7. /**
  8. * Hamcrest standard is two spaces for each level of indentation.
  9. *
  10. * @var string
  11. */
  12. const INDENT = ' ';
  13. /**
  14. * @var FactoryMethod
  15. */
  16. private $method;
  17. /**
  18. * @var string
  19. */
  20. private $name;
  21. public function __construct(FactoryMethod $method, $name)
  22. {
  23. $this->method = $method;
  24. $this->name = $name;
  25. }
  26. public function getMethod()
  27. {
  28. return $this->method;
  29. }
  30. public function getName()
  31. {
  32. return $this->name;
  33. }
  34. }