• 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/PodioReference.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/reference
4
 */
5
class PodioReference extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
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(PodioClient $podio_client, $ref_type, $ref_id, $attributes = array())
27
    {
28
        return self::member($podio_client->get("/reference/{$ref_type}/{$ref_id}", $attributes));
×
29
    }
30

31
    /**
32
     * @see https://developers.podio.com/doc/reference/search-references-13312595
33
     */
34
    public static function search(PodioClient $podio_client, $attributes = array())
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(PodioClient $podio_client, $attributes = array())
43
    {
44
        return self::member($podio_client->get("/reference/resolve", $attributes));
×
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