src/Model/Result.php
public function getActivities()
    {
        if (!isset($this->data['_embedded']['activities'])) {
            return [];
        }

        $activities = [];
        foreach ($this->data['_embedded']['activities'] as $data) {
            $activities[] = new Activity($data, $this->baseUrl, $this->client);
        }

        return $activities;
    }
public function getActivities()
    {
        if (!isset($this->data['_embedded']['activities'])) {
            return [];
        }

        $activities = [];
        foreach ($this->data['_embedded']['activities'] as $data) {
            $activities[] = new Activity($data, $this->baseUrl, $this->client);
        }

        return $activities;
    }
public function getActivities ( ) { if ( ! isset ( $ this -> data [ '_embedded' ] [ 'activities' ] ) ) { return [ ] ; } $ activities = [ ] ; foreach ( $ this -> data [ '_embedded' ] [ 'activities' ] as $ data ) { $ activities [ ] = new Activity ( $ data , $ this -> baseUrl , $ this -> client ) ; } return $ activities ; }
Get activities embedded in the result.

A result could embed 0, 1, or many activities.

@return Activity[]
Get activities embedded in the result .