• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

podio-community / podio-php / 5730982429

pending completion
5730982429

push

github

web-flow
Merge pull request #233 from podio-community/232-improvements-beta

fix: make podio_client first parameter of functions + remove podio_client member from models

235 of 235 new or added lines in 67 files covered. (100.0%)

916 of 2104 relevant lines covered (43.54%)

32.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/models/PodioVoting.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/voting
4
 */
5
class PodioVoting extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->init($attributes);
×
11
    }
12

13
    /**
14
     * @see https://developers.podio.com/doc/voting/get-result-of-voting-on-an-item-117727335
15
     */
16
    public static function get_result_for_item(PodioClient $podio_client, $item_id, $voting_id)
17
    {
18
        return $podio_client->get("/voting/item/{$item_id}/voting/{$voting_id}/result")->json_body();
×
19
    }
20

21
    /**
22
     * @see https://developers.podio.com/doc/voting/get-app-votings-117689723
23
     */
24
    public static function get_voting_id(PodioClient $podio_client, $app_id)
25
    {
26
        return $podio_client->get("/voting/app/{$app_id}/voting")->json_body();
×
27
    }
28

29
    /**
30
     * @see https://developers.podio.com/doc/voting/get-list-of-users-with-votes-117729546
31
     */
32
    public static function get_list_of_users_with_votes(PodioClient $podio_client, $item_id, $voting_id)
33
    {
34
        return $podio_client->get("/voting/item/{$item_id}/voting/{$voting_id}/user")->json_body();
×
35
    }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc