private function getClassInfo($refId, FlashorbBinaryReader $reader, ParseContext $parseContext) { if (($refId & 0x3) == 1) { return $parseContext->getClassInfoReference($refId >> 2); } $looseProps = ($refId & 0x8) == 8; $className = ReaderUtils::readString($reader, $parseContext); $classInfo = new ClassInfo($looseProps, $className); $propsCount = $refId >> 4; if (LOGGING) { Log::log(LoggingConstants::SERIALIZATION, "Readed class info, class: {$className}, property count:{$propsCount}"); } for ($i = 0; $i < $propsCount; $i++) { $classInfo->addProperty(ReaderUtils::readString($reader, $parseContext)); } $parseContext->addClassInfoReference($classInfo); return $classInfo; }