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

podio-community / podio-php / 5242912328

pending completion
5242912328

push

github

web-flow
Merge pull request #228 from podio-community/90-non-static-podio-class

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

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

917 of 2108 relevant lines covered (43.5%)

24.11 hits per line

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

0.0
/models/PodioReference.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/reference
4
 */
5
class PodioReference extends PodioObject
6
{
7
    public function __construct(PodioClient $podio_client, $attributes = array())
8
    {
9
        parent::__construct($podio_client);
×
10
        $this->property('type', 'string');
×
11
        $this->property('id', 'integer');
×
12
        $this->property('title', 'string');
×
13
        $this->property('link', 'string');
×
14
        $this->property('data', 'hash');
×
15
        $this->property('created_on', 'datetime');
×
16

17
        $this->has_one('created_by', 'ByLine');
×
18
        $this->has_one('created_via', 'Via');
×
19

20
        $this->init($attributes);
×
21
    }
22

23
    /**
24
     * @see https://developers.podio.com/doc/reference/get-reference-10661022
25
     */
26
    public static function get_for($ref_type, $ref_id, $attributes = array(), PodioClient $podio_client)
27
    {
28
        return self::member($podio_client->get("/reference/{$ref_type}/{$ref_id}", $attributes), $podio_client);
×
29
    }
30

31
    /**
32
     * @see https://developers.podio.com/doc/reference/search-references-13312595
33
     */
34
    public static function search($attributes = array(), PodioClient $podio_client)
35
    {
36
        return $podio_client->post("/reference/search", $attributes)->json_body();
×
37
    }
38

39
    /**
40
     * @see https://developers.podio.com/doc/reference/resolve-url-66839423
41
     */
42
    public static function resolve($attributes = array(), PodioClient $podio_client)
43
    {
44
        return self::member($podio_client->get("/reference/resolve", $attributes), $podio_client);
×
45
    }
46
}
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