• 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

57.14
/models/PodioAppField.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/applications
4
 */
5
class PodioAppField extends PodioObject
6
{
7
    public function __construct(PodioClient $podio_client, $attributes = array())
8
    {
9
        parent::__construct($podio_client);
48✔
10
        $this->property('field_id', 'integer', array('id' => true));
48✔
11
        $this->property('type', 'string');
48✔
12
        $this->property('external_id', 'string');
48✔
13
        $this->property('config', 'hash');
48✔
14
        $this->property('status', 'string');
48✔
15
        $this->property('label', 'string');
48✔
16

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

20
    /**
21
     * @see https://developers.podio.com/doc/applications/add-new-app-field-22354
22
     */
23
    public static function create($app_id, $attributes = array(), PodioClient $podio_client)
24
    {
25
        $body = $podio_client->post("/app/{$app_id}/field/", $attributes)->json_body();
×
26
        return $body['field_id'];
×
27
    }
28

29
    /**
30
     * @see https://developers.podio.com/doc/applications/get-app-field-22353
31
     */
32
    public static function get($app_id, $field_id, PodioClient $podio_client)
33
    {
34
        return self::member($podio_client->get("/app/{$app_id}/field/{$field_id}"), $podio_client);
×
35
    }
36

37
    /**
38
     * @see https://developers.podio.com/doc/applications/update-an-app-field-22356
39
     */
40
    public static function update($app_id, $field_id, $attributes = array(), PodioClient $podio_client)
41
    {
42
        return $podio_client->put("/app/{$app_id}/field/{$field_id}", $attributes);
×
43
    }
44

45
    /**
46
     * @see https://developers.podio.com/doc/applications/delete-app-field-22355
47
     */
48
    public static function delete($app_id, $field_id, $attributes = array(), PodioClient $podio_client)
49
    {
50
        $body = $podio_client->delete("/app/{$app_id}/field/{$field_id}", $attributes)->json_body();
×
51
        return $body['revision'];
×
52
    }
53
}
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