/** * get type of stored object * @return integer */ public function getType() { return ObjectType::getTypeByString($this->getObjectName()); }
/** * 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)); } }