public function following($username, $type = UrlBuilder::FOLLOWING_PEOPLE, $limit = Pagination::DEFAULT_LIMIT)
    {
        $followingUrl = UrlBuilder::getFollowingUrlByType($type);

        if ($followingUrl === null) {
            throw new WrongFollowingType("No following results for $type");
        }

        return $this->paginateByUsername($username, $followingUrl, $limit);
    }
public function following($username, $type = UrlBuilder::FOLLOWING_PEOPLE, $limit = Pagination::DEFAULT_LIMIT)
    {
        $followingUrl = UrlBuilder::getFollowingUrlByType($type);

        if ($followingUrl === null) {
            throw new WrongFollowingType("No following results for $type");
        }

        return $this->paginateByUsername($username, $followingUrl, $limit);
    }
public function following ( $ username , $ type = UrlBuilder :: FOLLOWING_PEOPLE , $ limit = Pagination :: DEFAULT_LIMIT ) { $ followingUrl = UrlBuilder :: getFollowingUrlByType ( $ type ) ; if ( $ followingUrl === null ) { throw new WrongFollowingType ( "No following results for $type" ) ; } return $ this -> paginateByUsername ( $ username , $ followingUrl , $ limit ) ; }
Get following info for pinner.

@param string $username
@param string $type
@param int $limit
@return Pagination
@throws WrongFollowingType
Get following info for pinner .