Go\Aop\PointFilter::getKind PHP Method

getKind() public method

Returns the kind of point filter
public getKind ( ) : integer
return integer
    public function getKind();

Usage Example

 /**
  * Control flow below constructor
  *
  * @param Pointcut $pointcut Instance of pointcut, that will be used for matching
  * @throws \InvalidArgumentException if filter doesn't support methods
  */
 public function __construct(Pointcut $pointcut)
 {
     $this->internalClassFilter = $pointcut->getClassFilter();
     $this->internalPointFilter = $pointcut;
     if (!($this->internalPointFilter->getKind() & PointFilter::KIND_METHOD)) {
         throw new \InvalidArgumentException("Only method filters are valid for control flow");
     }
 }
All Usage Examples Of Go\Aop\PointFilter::getKind