expr instanceof FuncCall && ((string)$object->expr->name) === 'hook'; } public function create(ContextStack $context, object $object, StrategyContainer $strategies): void { $method = $context->peek(); $method->addMetadata(new Hook($object->expr->args[0]->value->value)); } }