Instagram\API\Response\FollowersFriendshipResponse::getFollowers PHP Метод

getFollowers() публичный Метод

Get Followers by iterating over all Sections
public getFollowers ( ) : User[]
Результат Instagram\API\Response\Model\User[]
    public function getFollowers()
    {
        $followers = array();
        $sections = $this->getSections();
        if ($sections != null) {
            foreach ($sections as $section) {
                $users = $section->getUsers();
                if ($users != null) {
                    foreach ($users as $user) {
                        $followers[] = $user;
                    }
                }
            }
        }
        return $followers;
    }