• 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/PodioItemDiff.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/items
4
 */
5
class PodioItemDiff extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('field_id', 'integer');
×
11
        $this->property('type', 'string');
×
12
        $this->property('external_id', 'string');
×
13
        $this->property('label', 'string');
×
14
        $this->property('from', 'array');
×
15
        $this->property('to', 'array');
×
16
        $this->property('config', 'hash');
×
17

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

21
    /**
22
     * @see https://developers.podio.com/doc/items/revert-item-revision-953195
23
     */
24
    public static function revert(PodioClient $podio_client, $item_id, $revision_id)
25
    {
26
        $response = $podio_client->delete("/item/{$item_id}/revision/{$revision_id}");
×
27
        if ($response->body) {
×
28
            $json_body = $response->json_body();
×
29
            return $json_body['revision'];
×
30
        }
31
        return null;
×
32
    }
33

34
    /**
35
     * @see https://developers.podio.com/doc/items/get-item-revision-difference-22374
36
     */
37
    public static function get_for(PodioClient $podio_client, $item_id, $revision_from_id, $revision_to_id)
38
    {
39
        return self::listing($podio_client, $podio_client->get("/item/{$item_id}/revision/{$revision_from_id}/{$revision_to_id}"));
×
40
    }
41
}
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