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

podio-community / podio-php / 5919248423

20 Aug 2023 07:35PM UTC coverage: 54.871% (+1.4%) from 53.497%
5919248423

Pull #242

github

daniel-sc
fix linter II
Pull Request #242: More fixes

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

1149 of 2094 relevant lines covered (54.87%)

34.44 hits per line

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

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

20
        $this->has_one('created_by', 'ByLine');
×
21

22
        $this->init($attributes);
×
23
    }
24

25
    /**
26
     * @see https://developers.podio.com/doc/search/search-in-app-4234651
27
     */
28
    public static function app(PodioClient $podio_client, $app_id, $attributes = array())
29
    {
30
        return self::listing($podio_client->post("/search/app/{$app_id}/", $attributes));
×
31
    }
32

33
    /**
34
     * @see https://developers.podio.com/doc/search/search-in-space-22479
35
     */
36
    public static function space(PodioClient $podio_client, $space_id, $attributes = array())
37
    {
38
        return self::listing($podio_client->post("/search/space/{$space_id}/", $attributes));
×
39
    }
40

41
    /**
42
     * @see https://developers.podio.com/doc/search/search-in-organization-22487
43
     */
44
    public static function org(PodioClient $podio_client, $org_id, $attributes = array())
45
    {
46
        return self::listing($podio_client->post("/search/org/{$org_id}/", $attributes));
×
47
    }
48

49
    /**
50
     * @see https://developers.podio.com/doc/search/search-globally-22488
51
     */
52
    public static function search(PodioClient $podio_client, $attributes = array())
53
    {
54
        return self::listing($podio_client->post("/search/", $attributes));
×
55
    }
56

57
    /**
58
     * Search in app and space. Only applicable to platform
59
     */
60
    public static function search_app_and_space(PodioClient $podio_client, $space_id, $app_id, $attributes = array())
61
    {
62
        return self::listing($podio_client->post("/search/app/{$app_id}/space/{$space_id}", $attributes));
×
63
    }
64
}
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