Example #1
0
 /**
  * get type of stored object
  * @return integer
  */
 public function getType()
 {
     return ObjectType::getTypeByString($this->getObjectName());
 }
Example #2
0
 /**
  * get a single objectType
  * @param integer|string $component
  * @param string $type
  * @return integer|string
  */
 private function getType($component, $type)
 {
     if ($type === 'string') {
         return ObjectType::getAsString($component);
     } else {
         return ObjectType::getTypeByString(strval($component));
     }
 }