Test.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * This file is part of GameQ.
  4. *
  5. * GameQ is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GameQ is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. namespace GameQ\Filters;
  19. use GameQ\Server;
  20. /**
  21. * Class Test
  22. *
  23. * This is a test filter to be used for testing purposes only.
  24. *
  25. * @package GameQ\Filters
  26. */
  27. class Test extends Base
  28. {
  29. /**
  30. * Apply the filter. For this we just return whatever is sent
  31. *
  32. * @SuppressWarnings(PHPMD)
  33. *
  34. * @param array $result
  35. * @param \GameQ\Server $server
  36. *
  37. * @return array
  38. */
  39. public function apply(array $result, Server $server)
  40. {
  41. return $result;
  42. }
  43. }