/** * Gibt die GClass des Entities zurück welches sich in der Relation in diesem Property befindet * * mach nur sinn wenn isRelation() TRUE ist * @return GClass */ public function getRelationEntityClass() { if ($this->type instanceof PersistentCollectionType) { return $this->type->getType()->getGClass(); } elseif ($this->type instanceof EntityType) { return $this->type->getGClass(); } }
/** * @param Webforge\Types\EnclosingType $collectionType * @chainable */ public function setCollectionType(TraversableType $collectionType) { $this->collectionType = $collectionType; if ($this->itemType) { $this->collectionType->setType($this->itemType); } return $this; }
public function getName() { return $this->type->getName(); }
/** * Der Hint für einen GParameter der mit diesem Property bestückt werden soll * * @return string|NULL (glaub ich) */ public function getPHPHint() { return isset($this->type) ? $this->type->getPHPHint() : NULL; }