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

podio-community / podio-php / 5155402462

pending completion
5155402462

push

github

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

BREAKING CHANGE: replace static Podio with instantiable PodioClient

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

917 of 2107 relevant lines covered (43.52%)

24.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/models/PodioReminder.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/reminders
4
 */
5
class PodioReminder extends PodioObject
6
{
7
    public function __construct(PodioClient $podio_client, $attributes = array())
8
    {
9
        parent::__construct($podio_client);
×
10
        $this->property('reminder_id', 'integer', array('id' => true));
×
11
        $this->property('remind_delta', 'integer');
×
12

13
        $this->init($attributes);
×
14
    }
15

16
    /**
17
     * @see https://developers.podio.com/doc/reminders/get-reminder-3415569
18
     */
19
    public static function get_for($ref_type, $ref_id, PodioClient $podio_client)
20
    {
21
        return self::member($podio_client->get("/reminder/{$ref_type}/{$ref_id}"), $podio_client);
×
22
    }
23

24
    /**
25
     * @see https://developers.podio.com/doc/reminders/create-or-update-reminder-3315055
26
     */
27
    public static function create($ref_type, $ref_id, $attributes = array(), PodioClient $podio_client)
28
    {
29
        return $podio_client->put("/reminder/{$ref_type}/{$ref_id}", $attributes);
×
30
    }
31

32
    /**
33
     * @see https://developers.podio.com/doc/reminders/create-or-update-reminder-3315055
34
     */
35
    public static function update($ref_type, $ref_id, $attributes = array(), PodioClient $podio_client)
36
    {
37
        return $podio_client->put("/reminder/{$ref_type}/{$ref_id}", $attributes);
×
38
    }
39

40
    /**
41
     * @see https://developers.podio.com/doc/reminders/snooze-reminder-3321049
42
     */
43
    public static function snooze($ref_type, $ref_id, PodioClient $podio_client)
44
    {
45
        return $podio_client->post("/reminder/{$ref_type}/{$ref_id}/snooze");
×
46
    }
47

48
    /**
49
     * @see https://developers.podio.com/doc/reminders/delete-reminder-3315117
50
     */
51
    public static function delete($ref_type, $ref_id, PodioClient $podio_client)
52
    {
53
        return $podio_client->delete("/reminder/{$ref_type}/{$ref_id}");
×
54
    }
55
}
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