예제 #1
0
파일: Schema.php 프로젝트: aeshion/ZeroPHP
 /**
  * @param AbstractType $abstractType
  * @return ObjectType[]
  */
 public function getPossibleTypes(AbstractType $abstractType)
 {
     if ($abstractType instanceof UnionType) {
         return $abstractType->getTypes();
     }
     Utils::invariant($abstractType instanceof InterfaceType);
     return isset($this->implementations[$abstractType->name]) ? $this->implementations[$abstractType->name] : [];
 }