lib/Weasel/JsonMarshaller/Config/ClassAnnotationDriver.php
protected function _getSubClassName(\ReflectionClass $rClass)
    {
        $subClassReader = $this->annotationReaderFactory->getReaderForClass($rClass);
        /**
         * @var Annotations\JsonTypeName $subNameA
         */
        $subNameA = $subClassReader->getSingleClassAnnotation($this->annNS . 'JsonTypeName');
        if (isset($subNameA)) {
            return $subNameA->getName();
        } else {
            return $rClass->getName();
        }

    }
protected function _getSubClassName(\ReflectionClass $rClass)
    {
        $subClassReader = $this->annotationReaderFactory->getReaderForClass($rClass);
        /**
         * @var Annotations\JsonTypeName $subNameA
         */
        $subNameA = $subClassReader->getSingleClassAnnotation($this->annNS . 'JsonTypeName');
        if (isset($subNameA)) {
            return $subNameA->getName();
        } else {
            return $rClass->getName();
        }

    }
protected function _getSubClassName ( \ ReflectionClass $ rClass ) { $ subClassReader = $ this -> annotationReaderFactory -> getReaderForClass ( $ rClass ) ; /**
         * @var Annotations\JsonTypeName $subNameA
         */ $ subNameA = $ subClassReader -> getSingleClassAnnotation ( $ this -> annNS . 'JsonTypeName' ) ; if ( isset ( $ subNameA ) ) { return $ subNameA -> getName ( ) ; } else { return $ rClass -> getName ( ) ; } }
Find out what name we should use to referr to one of our subtypes.
@param \ReflectionClass $rClass
@return string
Find out what name we should use to referr to one of our subtypes .