function getOwnerId()
    {
        if ($this->withIdentity() instanceof iIdentityOfUser)
        {
            /** @var IdentityOAuthToken|iIdentityOfUser $identity */
            $identity = $this->withIdentity();
            $userId   = $identity->getOwnerId();
        }
        else
        {
            $userInfo = $this->getAuthInfo();
            $userId   = $userInfo['user']['uid'];
        }


        return $userId;
    }
function getOwnerId()
    {
        if ($this->withIdentity() instanceof iIdentityOfUser)
        {
            /** @var IdentityOAuthToken|iIdentityOfUser $identity */
            $identity = $this->withIdentity();
            $userId   = $identity->getOwnerId();
        }
        else
        {
            $userInfo = $this->getAuthInfo();
            $userId   = $userInfo['user']['uid'];
        }


        return $userId;
    }
function getOwnerId ( ) { if ( $ this -> withIdentity ( ) instanceof iIdentityOfUser ) { /** @var IdentityOAuthToken|iIdentityOfUser $identity */ $ identity = $ this -> withIdentity ( ) ; $ userId = $ identity -> getOwnerId ( ) ; } else { $ userInfo = $ this -> getAuthInfo ( ) ; $ userId = $ userInfo [ 'user' ] [ 'uid' ] ; } return $ userId ; }
Get Owner Identifier

@return mixed
Get Owner Identifier