public function equals(AbstractContext $context) { return $context instanceof StaticMethod && $this->getClassName() === $context->getClassName() && $this->getMethodName() === $context->getMethodName(); }