silverstripe-framework/Core/Injector/AfterCallAspect.php

30 lines
798 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\Core\Injector;
/**
* An AfterCallAspect is run after a method is executed
2014-08-15 08:53:05 +02:00
*
* This is a declared interface, but isn't actually required
2014-08-15 08:53:05 +02:00
* as PHP doesn't really care about types...
*
* @author Marcus Nyeholt <marcus@silverstripe.com.au>
* @license BSD http://silverstripe.org/BSD-license
*/
interface AfterCallAspect {
2014-08-15 08:53:05 +02:00
/**
* Call this aspect after a method is executed
2014-08-15 08:53:05 +02:00
*
* @param object $proxied
2014-08-15 08:53:05 +02:00
* The object having the method called upon it.
* @param string $method
* The name of the method being called
* @param string $args
* The arguments that were passed to the method call
* @param mixed $result
* The result of calling the method on the real object
*/
public function afterCall($proxied, $method, $args, $result);
}