Returns other polls.

@return Poll[]
769015
public function getOtherPolls()
    {
        $data = [
            'fullList' => 'true',
            'locale' => $this->locale,
            'token' => $this->token,
        ];
        $response = $this->doGet('/np/users/me/dashboard/otherPolls', $data);
        $polls = json_decode($response, true);

        $objects = [];
        if (!empty($polls['otherPolls']['otherPolls'])) {
            foreach ($polls['otherPolls']['otherPolls'] as $poll) {
                $objects[] = $this->pollRepository->create($poll);
            }
        }

        return $objects;
    }
1109204
public function getQueries()
    {
        return array_merge(
            $this->getDropSequenceQueries(),
            $this->getDropViewQueries(),
            $this->getRenameTableQueries(),
            $this->getDropCheckQueries(),
            $this->getDropForeignKeyQueries(),
            $this->getDropIndexQueries(),
            $this->getDropPrimaryKeyQueries(),
            $this->getDropTableQueries(),
            $this->getDropColumnQueries(),
            $this->getAlterColumnQueries(),
            $this->getCreateColumnQueries(),
            $this->getCreateTableQueries(),
            $this->getCreatePrimaryKeyQueries(),
            $this->getCreateIndexQueries(),
            $this->getCreateForeignKeyQueries(),
            $this->getCreateCheckQueries(),
            $this->getCreateViewQueries(),
            $this->getCreateSequenceQueries(),
            $this->getRenameSchemaQueries()
        );
    }
1248232
final public function getAttachments(): array
    {
        if (null === $this->attachments) {
            $this->attachments = self::gatherAttachments($this);
        }

        return $this->attachments;
    }
20678
public function getResults()
    {
        $list = (array) $this->parent->getAttributeFromArray($this->localKey);
        $result = [];

        foreach ($list as $index => $item) {
            $result[$index] = $model = $this->related->newInstance([], true);
            $model->setId($index);
        }

        return collect($result);
    }
538088
public function injectInfo(Poll $poll): array
    {
        $info = $poll->_getInfo();
        if ($info === null) {
            $info = $this->client->_getInfo($poll);
            $poll->_setInfo($info);
        }

        return $info;
    }
837837
protected function getChoiceSlugs()
    {
        $choiceSlugs = [];
        foreach ($this->choices as $index => $choice) {
            $choiceSlugs[] = StringUtils::slugify("$index-{$choice->getAlias()}");
        }

        return $choiceSlugs;
    }
1085082
public function getClauses()
    {
        return array(
            $this->getUpdate(),
            $this->getJoins(),
            $this->getSet(),
            $this->getWhere(),
            $this->getOrder(),
            $this->getLimit(),
        );
    }
652154
public function getAggregations()
    {
        $aggregations = [];

        foreach (parent::getAggregations() as $key => $aggregation) {
            $aggregations[$key] = $this->getAggregation($key);
        }

        return $aggregations;
    }
342412
public function getIndices(): array
    {
        $indices = [];
        foreach ($this->_data['indices'] as $indexName => $index) {
            $indices[$indexName] = new Index($indexName, $index);
        }

        return $indices;
    }
502625
public function getUserFlags() : array
    {
        if ($this->flags !== null) {
            return $this->flags;
        }

        $this->flags = [];
        $usergroups = $this->usergroups;

        foreach ($usergroups as $usergroup) {
            $group = $usergroup->group;
            $flags = $group->flags;

            if (!empty($flags)) {
                $this->flags = array_merge($this->flags, $flags);
            }
        }

        return $this->flags;
    }
18299
public static function getChoices()
    {
        return [
            self::PHYSICAL     => 'ekyna_product.type.'.self::PHYSICAL,
            self::VIRTUAL      => 'ekyna_product.type.'.self::VIRTUAL,
            self::DOWNLOADABLE => 'ekyna_product.type.'.self::DOWNLOADABLE,
        ];
    }
981019
public function voters()
    {
        return $this->morphToMany(config('follow.user_model'), config('follow.morph_prefix'), config('follow.followable_table'))
                    ->wherePivotIn('relation', [Follow::RELATION_UPVOTE, Follow::RELATION_DOWNVOTE])
                    ->withPivot('followable_type', 'relation', 'created_at');
    }
849878
private function getResultIndices()
    {
        $indices = array();

        if (count($this->params->getIdSites()) > 1
            || $this->forceIndexedBySite
        ) {
            $indices['site'] = 'idSite';
        }

        if (count($this->params->getPeriods()) > 1
            || $this->forceIndexedByDate
        ) {
            $indices['period'] = 'date';
        }

        return $indices;
    }
916114
public function getAssociations() : array
    {
        $values = get_object_vars($this);
        foreach ($values as $property => $value) {
            // Skip scalar values
            if ( ! is_object($value)) {
                unset($values[$property]);
            }
        }

        return $values;
    }
1320563
protected function getStats () : array
    {
        $explicit = [];

        foreach ($this->_StrongestPaths as $candidate_key => $candidate_value) :
            $candidate_key = $this->_selfElection->getCandidateId($candidate_key, true);

            foreach ($candidate_value as $challenger_key => $challenger_value) :
                $explicit[$candidate_key][$this->_selfElection->getCandidateId($challenger_key, true)] = $challenger_value;
            endforeach;
        endforeach;

        return $explicit;
    }
1120447
public static function values(): array
    {
        self::checkForChoiceEnumTraitMisuses();

        $values = array_keys(static::choices());

        if (is_a(static::class, FlaggedEnum::class, true)) {
            $values = array_values(array_filter($values, function ($v): bool {
                return 0 === ($v & $v - 1);
            }));
        }

        return $values;
    }
1373835
public function getResults()
    {
        return $this->hasResults() ? $this->adapter->getResults($this->getOffset(), $this->limit) : [];
    }