LimeMockMethod.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /*
  3. * This file is part of the Lime test framework.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  6. * (c) Bernhard Schussek <bernhard.schussek@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. /**
  12. * Represents a method on a class.
  13. *
  14. * @package Lime
  15. * @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
  16. * @version SVN: $Id: LimeMockMethod.php 23880 2009-11-14 10:14:34Z bschussek $
  17. */
  18. class LimeMockMethod implements LimeMockMethodInterface
  19. {
  20. protected
  21. $class = null,
  22. $method = null;
  23. /**
  24. * Constructor.
  25. *
  26. * @param string $class The class name
  27. * @param string $method The method name
  28. */
  29. public function __construct($class, $method)
  30. {
  31. $this->class = $class;
  32. $this->method = $method;
  33. }
  34. /**
  35. * Returns the class name.
  36. *
  37. * @return string
  38. */
  39. public function getClass()
  40. {
  41. return $this->class;
  42. }
  43. /**
  44. * Returns the method name.
  45. *
  46. * @return string
  47. */
  48. public function getMethod()
  49. {
  50. return $this->method;
  51. }
  52. }