public function getUsername()
    {
        $username = null;
        $link = $this->getLink();

        if (!empty($link)) {
            $username = substr($link, strrpos($link, '/') + 1);
        }

        return $username;
    }
public function getUsername()
    {
        $username = null;
        $link = $this->getLink();

        if (!empty($link)) {
            $username = substr($link, strrpos($link, '/') + 1);
        }

        return $username;
    }
public function getUsername ( ) { $ username = null ; $ link = $ this -> getLink ( ) ; if ( ! empty ( $ link ) ) { $ username = substr ( $ link , strrpos ( $ link , '/' ) + 1 ) ; } return $ username ; }
Get resource owner's username

@return string|null
Get resource owner s username