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

podio-community / podio-php / 5730938671

pending completion
5730938671

push

github

web-flow
Merge pull request #233 from podio-community/232-improvements-beta

fix: make podio_client first parameter of functions + remove podio_client member from models

235 of 235 new or added lines in 67 files covered. (100.0%)

916 of 2104 relevant lines covered (43.54%)

32.17 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($attributes = array())
8
    {
9
        parent::__construct();
×
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(PodioClient $podio_client, $ref_type, $ref_id)
20
    {
21
        return self::member($podio_client, $podio_client->get("/reminder/{$ref_type}/{$ref_id}"));
×
22
    }
23

24
    /**
25
     * @see https://developers.podio.com/doc/reminders/create-or-update-reminder-3315055
26
     */
27
    public static function create(PodioClient $podio_client, $ref_type, $ref_id, $attributes = array())
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(PodioClient $podio_client, $ref_type, $ref_id, $attributes = array())
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(PodioClient $podio_client, $ref_type, $ref_id)
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(PodioClient $podio_client, $ref_type, $ref_id)
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