@@ -741,14 +741,12 @@ public function fileExists(string $file_path): bool
741741 public function classOrInterfaceExists (
742742 string $ fq_class_name ,
743743 ?CodeLocation $ code_location = null ,
744- ?string $ calling_fq_class_name = null ,
745- ?string $ calling_method_id = null ,
744+ ?Context $ context = null ,
746745 ): bool {
747746 return $ this ->classlikes ->classOrInterfaceExists (
748747 $ fq_class_name ,
749748 $ code_location ,
750- $ calling_fq_class_name ,
751- $ calling_method_id ,
749+ $ context ,
752750 );
753751 }
754752
@@ -761,14 +759,12 @@ public function classOrInterfaceExists(
761759 public function classOrInterfaceOrEnumExists (
762760 string $ fq_class_name ,
763761 ?CodeLocation $ code_location = null ,
764- ?string $ calling_fq_class_name = null ,
765- ?string $ calling_method_id = null ,
762+ ?Context $ context = null ,
766763 ): bool {
767764 return $ this ->classlikes ->classOrInterfaceOrEnumExists (
768765 $ fq_class_name ,
769766 $ code_location ,
770- $ calling_fq_class_name ,
771- $ calling_method_id ,
767+ $ context ,
772768 );
773769 }
774770
@@ -787,14 +783,12 @@ public function classExtendsOrImplements(string $fq_class_name, string $possible
787783 public function classExists (
788784 string $ fq_class_name ,
789785 ?CodeLocation $ code_location = null ,
790- ?string $ calling_fq_class_name = null ,
791- ?string $ calling_method_id = null ,
786+ ?Context $ context = null ,
792787 ): bool {
793788 return $ this ->classlikes ->classExists (
794789 $ fq_class_name ,
795790 $ code_location ,
796- $ calling_fq_class_name ,
797- $ calling_method_id ,
791+ $ context ,
798792 );
799793 }
800794
@@ -826,14 +820,12 @@ public function classImplements(string $fq_class_name, string $interface): bool
826820 public function interfaceExists (
827821 string $ fq_interface_name ,
828822 ?CodeLocation $ code_location = null ,
829- ?string $ calling_fq_class_name = null ,
830- ?string $ calling_method_id = null ,
823+ ?Context $ context = null ,
831824 ): bool {
832825 return $ this ->classlikes ->interfaceExists (
833826 $ fq_interface_name ,
834827 $ code_location ,
835- $ calling_fq_class_name ,
836- $ calling_method_id ,
828+ $ context ,
837829 );
838830 }
839831
0 commit comments