Go\Aop\PointFilter::matches PHP 메소드

matches() 공개 메소드

Performs matching of point of code
public matches ( mixed $point, null | mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean
$point mixed Specific part of code, can be any Reflection class
$context null | mixed Related context, can be class or namespace
$instance null | string | object Invocation instance or string for static calls
$arguments array Dynamic arguments for method
리턴 boolean
    public function matches($point, $context = null, $instance = null, array $arguments = null);

Usage Example

예제 #1
0
 /**
  * Performs matching of point of code
  *
  * @param mixed $point Specific part of code, can be any Reflection class
  * @param null|mixed $context Related context, can be class or namespace
  * @param null|string|object $instance Invocation instance or string for static calls
  * @param null|array $arguments Dynamic arguments for method
  *
  * @return bool
  */
 public function matches($point, $context = null, $instance = null, array $arguments = null)
 {
     if (!$this->modifierFilter->matches($point, $context)) {
         return false;
     }
     return $point->name === $this->name || (bool) preg_match("/^(?:{$this->regexp})\$/", $point->name);
 }
All Usage Examples Of Go\Aop\PointFilter::matches