Пример #1
0
 /**
  * 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;
 }
Пример #3
0
 public function getName()
 {
     return $this->type->getName();
 }
Пример #4
0
 /**
  * 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;
 }