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

podio-community / podio-php / 5248053189

pending completion
5248053189

push

github

web-flow
Merge pull request #228 from podio-community/90-non-static-podio-class

feat: isolated client class to allow for parallel usage + extension mocking

648 of 648 new or added lines in 66 files covered. (100.0%)

917 of 2108 relevant lines covered (43.5%)

24.11 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(PodioClient $podio_clint, $attributes = array())
8
    {
9
        parent::__construct($podio_clint);
×
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($flow_id, PodioClient $podio_client)
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($ref_type, $ref_id, $attributes = array(), PodioClient $podio_client)
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($flow_id, $attributes = array(), PodioClient $podio_client)
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($flow_id, PodioClient $podio_client)
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($ref_type, $ref_id, PodioClient $podio_client)
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($ref_type, $ref_id, PodioClient $podio_client)
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($flow_id, PodioClient $podio_client)
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($ref_type, $ref_id, PodioClient $podio_client)
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