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

podio-community / podio-php / 5637886045

pending completion
5637886045

Pull #233

github

web-flow
Merge 4cab6a241 into b5bb41606
Pull Request #233: fix: make podio_client first parameter of functions

231 of 231 new or added lines in 64 files covered. (100.0%)

916 of 2104 relevant lines covered (43.54%)

24.12 hits per line

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

0.0
/models/PodioQuestion.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/questions
4
 */
5
class PodioQuestion extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('question_id', 'integer', array('id' => true));
×
11
        $this->property('text', 'string');
×
12

13
        $this->has_one('ref', 'Reference');
×
14
        $this->has_many('answers', 'QuestionAnswer');
×
15
        $this->has_many('options', 'QuestionOption');
×
16

17
        $this->init($attributes);
×
18
    }
19

20
    /**
21
     * @see https://developers.podio.com/doc/questions/create-question-887166
22
     */
23
    public static function create(PodioClient $podio_client, $ref_type, $ref_id, $attributes = array())
24
    {
25
        $body = $podio_client->post("/question/{$ref_type}/{$ref_id}/", $attributes)->json_body();
×
26
        return $body['question_id'];
×
27
    }
28

29
    /**
30
     * @see https://developers.podio.com/doc/questions/answer-question-887232
31
     */
32
    public static function answer(PodioClient $podio_client, $question_id, $attributes = array())
33
    {
34
        return $podio_client->post("/question/{$question_id}/", $attributes);
×
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