/**
* 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");
}
}