StubMarshaler.php 545 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Codeception\Stub;
  3. use PHPUnit\Framework\MockObject\Matcher\InvokedRecorder;
  4. /**
  5. * Holds matcher and value of mocked method
  6. */
  7. class StubMarshaler
  8. {
  9. private $methodMatcher;
  10. private $methodValue;
  11. public function __construct(InvokedRecorder $matcher, $value)
  12. {
  13. $this->methodMatcher = $matcher;
  14. $this->methodValue = $value;
  15. }
  16. public function getMatcher()
  17. {
  18. return $this->methodMatcher;
  19. }
  20. public function getValue()
  21. {
  22. return $this->methodValue;
  23. }
  24. }