asFQSEN() 공개 메소드

public asFQSEN ( ) : Phan\Language\FQSEN
리턴 Phan\Language\FQSEN A fully-qualified structural element name derived from this type
예제 #1
0
파일: Type.php 프로젝트: etsy/phan
 public function isSubclassOf(CodeBase $code_base, Type $parent)
 {
     $fqsen = $this->asFQSEN();
     assert($fqsen instanceof FullyQualifiedClassName);
     $this_clazz = $code_base->getClassByFQSEN($fqsen);
     $parent_fqsen = $parent->asFQSEN();
     assert($parent_fqsen instanceof FullyQualifiedClassName);
     $parent_clazz = $code_base->getClassByFQSEN($parent_fqsen);
     return $this_clazz->isSubclassOf($code_base, $parent_clazz);
 }
예제 #2
0
파일: Type.php 프로젝트: tpunt/phan
 public function isSubclassOf(CodeBase $code_base, Type $parent)
 {
     $this_clazz = $code_base->getClassByFQSEN($this->asFQSEN());
     $parent_clazz = $code_base->getClassByFQSEN($parent->asFQSEN());
     return $this_clazz->isSubclassOf($code_base, $parent_clazz);
 }