AOP.io
  • { PHP AOP } API Doc
  • Documentation
  • Tree
  • Make a donation via Paypal

Namespaces

  • Aop
    • Advice
    • Aspect
    • Exception
    • JoinPoint
      • Support
      • Traits
    • Pointcut
    • Traits
    • Weaver
  • PatchworkInterceptor
  • PeclAop
  • PHP

Classes

  • Interceptor
  • Weaver

Interfaces

  • WeaverInterface

Class Interceptor

Abstract

AOP Abstraction Layer. Base class for all PHP interceptors.

Aop\Weaver\Interceptor
implements :
  • Aop\Weaver\WeaverInterface

Direct known subclasses

  • PatchworkInterceptor\PatchworkInterceptor
  • PeclAop\PeclAopInterceptor
Located at php-aop/src/Aop/Weaver/Interceptor.php
Namespace Aop\Weaver
Author Nicolas Tallefourtane <dev@nicolab.net>

Methods summary

public integer
# getLastIndex( )

Returns

integer
The last index assigned.

See

Aop\Weaver\WeaverInterface::getLastIndex()

Inheritdoc

Implementation of

Aop\Weaver\WeaverInterface::getLastIndex()
protected Aop\JoinPoint\JoinPoint
# createJoinPoint( integer $kind, Aop\Aop\Pointcut\PointcutInterface $pointcut, Aop\Aop\JoinPoint\Support\JoinPointSupportInterceptorInterface $support )

Create a new instance of JoinPoint. Note: The kind of JoinPoint class depends on the context execution.

Create a new instance of JoinPoint. Note: The kind of JoinPoint class depends on the context execution.

Parameters

$kind
integer
$kind The kind of JoinPoint.
$pointcut
Aop\Pointcut\PointcutInterface
$pointcut The pointcut that triggers the JoinPoint.
$support
Aop\JoinPoint\Support\JoinPointSupportInterceptorInterface
$support The interceptor that support the JoinPoint

Returns

Aop\JoinPoint\JoinPoint
Returns a JoinPoint instance, the class of JoinPoint depends on the $kind.

Methods inherited from Aop\Weaver\WeaverInterface

  • addAfter()
  • addAfterReturn()
  • addAfterThrow()
  • addAround()
  • addBefore()
  • disable()
  • enable()
  • getIndexOfSelector()
  • getPointcut()
  • isEnabled()

Magic methods summary

Constants summary

Constants inherited from Aop\Weaver\WeaverInterface

  • DISABLE
  • ENABLE

Constants inherited from Aop\KindConstantInterface

  • KIND_AFTER
  • KIND_AFTER_FUNCTION
  • KIND_AFTER_FUNCTION_RETURN
  • KIND_AFTER_FUNCTION_THROW
  • KIND_AFTER_METHOD
  • KIND_AFTER_METHOD_RETURN
  • KIND_AFTER_METHOD_THROW
  • KIND_AFTER_PROPERTY
  • KIND_AFTER_PROPERTY_READ
  • KIND_AFTER_PROPERTY_WRITE
  • KIND_AFTER_RETURN
  • KIND_AFTER_THROW
  • KIND_AROUND
  • KIND_AROUND_FUNCTION
  • KIND_AROUND_METHOD
  • KIND_AROUND_PROPERTY
  • KIND_AROUND_PROPERTY_READ
  • KIND_AROUND_PROPERTY_WRITE
  • KIND_BEFORE
  • KIND_BEFORE_FUNCTION
  • KIND_BEFORE_METHOD
  • KIND_BEFORE_PROPERTY
  • KIND_BEFORE_PROPERTY_READ
  • KIND_BEFORE_PROPERTY_WRITE
  • KIND_FUNCTION
  • KIND_METHOD
  • KIND_PROPERTY
  • KIND_READ
  • KIND_THROW
  • KIND_WRITE

Properties summary

protected integer|null $lastIndex
#

Last index assigned. The first index assigned is the integer 1, if no index was assigned then null is returned.

Last index assigned. The first index assigned is the integer 1, if no index was assigned then null is returned.

{ PHP AOP } API Doc Generated with ApiGen