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

podio-community / podio-php / 5684537612

pending completion
5684537612

Pull #233

github

web-flow
Merge 9ea391ada into b5bb41606
Pull Request #233: 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/PodioFlow.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/flows
4
 */
5
class PodioFlow extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('flow_id', 'integer', array('id' => true));
×
11
        $this->property('name', 'string');
×
12
        $this->property('type', 'string');
×
13
        $this->property('config', 'hash');
×
14
        $this->property('effects', 'hash');
×
15

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

19
    /**
20
     * @see https://developers.podio.com/doc/flows/get-flow-by-id-26312313
21
     */
22
    public static function get(PodioClient $podio_client, $flow_id)
23
    {
24
        return $podio_client->get("/flow/{$flow_id}")->json_body();
×
25
    }
26

27
    /**
28
     * @see https://developers.podio.com/doc/flows/add-new-flow-26309928
29
     */
30
    public static function create(PodioClient $podio_client, $ref_type, $ref_id, $attributes = array())
31
    {
32
        return $podio_client->post("/flow/{$ref_type}/{$ref_id}/", $attributes);
×
33
    }
34

35
    /**
36
     * @see https://developers.podio.com/doc/flows/update-flow-26310901
37
     */
38
    public static function update(PodioClient $podio_client, $flow_id, $attributes = array())
39
    {
40
        return $podio_client->put("/flow/{$flow_id}", $attributes);
×
41
    }
42

43
    /**
44
     * @see https://developers.podio.com/doc/flows/delete-flow-32929229
45
     */
46
    public static function delete(PodioClient $podio_client, $flow_id)
47
    {
48
        return $podio_client->delete("/flow/{$flow_id}");
×
49
    }
50

51
    /**
52
     * @see https://developers.podio.com/doc/flows/get-flows-26312304
53
     */
54
    public static function get_flows(PodioClient $podio_client, $ref_type, $ref_id)
55
    {
56
        return $podio_client->get("/flow/{$ref_type}/{$ref_id}/")->json_body();
×
57
    }
58

59
    /**
60
     * @see https://developers.podio.com/doc/flows/get-effect-attributes-239234961
61
     */
62
    public static function get_effect_attributes(PodioClient $podio_client, $ref_type, $ref_id)
63
    {
64
        return $podio_client->post("/flow/{$ref_type}/{$ref_id}/effect/attributes")->json_body();
×
65
    }
66

67
    /**
68
     * @see https://developers.podio.com/doc/flows/get-flow-context-26313659
69
     */
70
    public static function get_flow_context(PodioClient $podio_client, $flow_id)
71
    {
72
        return $podio_client->get("/flow/{$flow_id}/context/")->json_body();
×
73
    }
74

75
    /**
76
     * @see https://developers.podio.com/doc/flows/get-possible-attributes-33060379
77
     */
78
    public static function get_possible_attributes(PodioClient $podio_client, $ref_type, $ref_id)
79
    {
80
        return $podio_client->post("/flow/{$ref_type}/{$ref_id}/attributes/")->json_body();
×
81
    }
82
}
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