You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
611 B

3 years ago
  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. }