• 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/PodioRecurrence.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/recurrence
4
 */
5
class PodioRecurrence extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('recurrence_id', 'integer', array('id' => true));
×
11
        $this->property('name', 'string');
×
12
        $this->property('config', 'hash');
×
13
        $this->property('step', 'integer');
×
14
        $this->property('until', 'date');
×
15

16
        $this->init($attributes);
×
17
    }
18

19
    /**
20
     * @see https://developers.podio.com/doc/recurrence/get-recurrence-3415545
21
     */
22
    public static function get_for(PodioClient $podio_client, $ref_type, $ref_id)
23
    {
24
        return self::member($podio_client->get("/recurrence/{$ref_type}/{$ref_id}"));
×
25
    }
26

27
    /**
28
     * @see https://developers.podio.com/doc/recurrence/create-or-update-recurrence-3349957
29
     */
30
    public static function create(PodioClient $podio_client, $ref_type, $ref_id, $attributes = array())
31
    {
32
        return $podio_client->put("/recurrence/{$ref_type}/{$ref_id}", $attributes);
×
33
    }
34

35
    /**
36
     * @see https://developers.podio.com/doc/recurrence/create-or-update-recurrence-3349957
37
     */
38
    public static function update(PodioClient $podio_client, $ref_type, $ref_id, $attributes = array())
39
    {
40
        return $podio_client->put("/recurrence/{$ref_type}/{$ref_id}", $attributes);
×
41
    }
42

43
    /**
44
     * @see https://developers.podio.com/doc/recurrence/delete-recurrence-3349970
45
     */
46
    public static function delete(PodioClient $podio_client, $ref_type, $ref_id)
47
    {
48
        return $podio_client->delete("/recurrence/{$ref_type}/{$ref_id}");
×
49
    }
50
}
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