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

podio-community / podio-php / 5937884423

22 Aug 2023 11:00AM UTC coverage: 55.065% (+1.6%) from 53.497%
5937884423

push

github

web-flow
Merge pull request #242 from podio-community/more-fixes

181 of 181 new or added lines in 43 files covered. (100.0%)

1147 of 2083 relevant lines covered (55.06%)

34.62 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->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