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

podio-community / podio-php / 5883458979

16 Aug 2023 08:19PM UTC coverage: 47.564% (-5.9%) from 53.497%
5883458979

Pull #242

github

web-flow
Merge 89cf31048 into 51d68f28d
Pull Request #242: More fixes

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

996 of 2094 relevant lines covered (47.56%)

33.35 hits per line

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

0.0
/models/PodioBatch.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/batch
4
 */
5
class PodioBatch extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('batch_id', 'integer', array('id' => true));
×
11
        $this->property('name', 'string');
×
12
        $this->property('plugin', 'string');
×
13
        $this->property('status', 'string');
×
14
        $this->property('completed', 'integer');
×
15
        $this->property('skipped', 'integer');
×
16
        $this->property('failed', 'integer');
×
17
        $this->property('created_on', 'datetime');
×
18
        $this->property('started_on', 'datetime');
×
19
        $this->property('ended_on', 'datetime');
×
20

21
        $this->has_one('file', 'File');
×
22
        $this->has_one('app', 'App');
×
23
        $this->has_one('space', 'Space');
×
24

25
        $this->init($attributes);
×
26
    }
27

28
    /**
29
     * @see https://developers.podio.com/doc/batch/get-batch-6144225
30
     */
31
    public static function get(PodioClient $podio_client, $batch_id)
32
    {
33
        return self::member($podio_client->get("/batch/{$batch_id}"));
×
34
    }
35

36
    /**
37
     * @see https://developers.podio.com/doc/batch/get-running-batches-15856178
38
     */
39
    public static function get_for(PodioClient $podio_client, $ref_type, $ref_id, $plugin)
40
    {
41
        return self::listing($podio_client->get("/batch/{$ref_type}/{$ref_id}/{$plugin}/running/"));
×
42
    }
43

44
    /**
45
     * @see https://developers.podio.com/doc/batch/get-batches-6078877
46
     */
47
    public static function get_all(PodioClient $podio_client, $attributes = array())
48
    {
49
        return self::listing($podio_client->get("/batch/", $attributes));
×
50
    }
51
}
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