AbstractLocation.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace GuzzleHttp\Command\Guzzle\ResponseLocation;
  3. use GuzzleHttp\Command\Guzzle\Parameter;
  4. use GuzzleHttp\Command\ResultInterface;
  5. use Psr\Http\Message\ResponseInterface;
  6. /**
  7. * Class AbstractLocation
  8. */
  9. abstract class AbstractLocation implements ResponseLocationInterface
  10. {
  11. /** @var string */
  12. protected $locationName;
  13. /**
  14. * Set the name of the location
  15. */
  16. public function __construct($locationName)
  17. {
  18. $this->locationName = $locationName;
  19. }
  20. /**
  21. * @return ResultInterface
  22. */
  23. public function before(
  24. ResultInterface $result,
  25. ResponseInterface $response,
  26. Parameter $model
  27. ) {
  28. return $result;
  29. }
  30. /**
  31. * @return ResultInterface
  32. */
  33. public function after(
  34. ResultInterface $result,
  35. ResponseInterface $response,
  36. Parameter $model
  37. ) {
  38. return $result;
  39. }
  40. /**
  41. * @return ResultInterface
  42. */
  43. public function visit(
  44. ResultInterface $result,
  45. ResponseInterface $response,
  46. Parameter $param
  47. ) {
  48. return $result;
  49. }
  50. }