Invocation.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. //require 'Yay/SelfDescribing.php';
  15. /**
  16. * A representation of a Method invocation.
  17. * This is a container for the object the method was invoked on, the method-
  18. * name and the arguments in the invocation.
  19. * @author Chris Corbyn <chris@w3style.co.uk>
  20. * @package Yay
  21. */
  22. interface Yay_Invocation extends Yay_SelfDescribing
  23. {
  24. /**
  25. * Get the object which this Invocation occured on.
  26. * @return object
  27. */
  28. public function getObject();
  29. /**
  30. * Get the method name of the invoked method.
  31. * @return string
  32. */
  33. public function getMethod();
  34. /**
  35. * Get the argument list in the Invocation.
  36. * @return array
  37. */
  38. public function &getArguments();
  39. }