public function isSecondaryLocal()
    {
        if (!$this->isSecondary()) {
            return false;
        }

        $hashKey        = $this->getHashKey()->getPropertyMetadata()->name;
        $hashKeyPrimary = $this->class->getIndex()->getHashKey()->getPropertyMetadata()->name;

        return $hashKey === $hashKeyPrimary;
    }
public function isSecondaryLocal()
    {
        if (!$this->isSecondary()) {
            return false;
        }

        $hashKey        = $this->getHashKey()->getPropertyMetadata()->name;
        $hashKeyPrimary = $this->class->getIndex()->getHashKey()->getPropertyMetadata()->name;

        return $hashKey === $hashKeyPrimary;
    }
public function isSecondaryLocal ( ) { if ( ! $ this -> isSecondary ( ) ) { return false ; } $ hashKey = $ this -> getHashKey ( ) -> getPropertyMetadata ( ) -> name ; $ hashKeyPrimary = $ this -> class -> getIndex ( ) -> getHashKey ( ) -> getPropertyMetadata ( ) -> name ; return $ hashKey === $ hashKeyPrimary ; }
Is this a local secondary index?

@return bool
Is this a local secondary index?