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

podio-community / podio-php / 5637863962

pending completion
5637863962

push

github

daniel-sc
feat: remove PodioClient instance field from models and make all model operations static

resolves #234

94 of 94 new or added lines in 64 files covered. (100.0%)

916 of 2104 relevant lines covered (43.54%)

24.12 hits per line

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

0.0
/models/PodioStreamObject.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/stream
4
 */
5
class PodioStreamObject 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('last_update_on', 'datetime');
×
13
        $this->property('title', 'string');
×
14
        $this->property('link', 'string');
×
15
        $this->property('rights', 'array');
×
16
        $this->property('data', 'hash');
×
17
        $this->property('comments_allowed', 'boolean');
×
18
        $this->property('user_ratings', 'hash');
×
19
        $this->property('created_on', 'datetime');
×
20

21
        $this->has_one('created_by', 'ByLine');
×
22
        $this->has_one('created_via', 'Via');
×
23
        $this->has_one('app', 'App');
×
24
        $this->has_one('space', 'Space');
×
25
        $this->has_one('organization', 'Organization');
×
26

27
        $this->has_many('comments', 'Comment');
×
28
        $this->has_many('files', 'File');
×
29
        $this->has_many('activity', 'Activity');
×
30

31
        $this->init($attributes);
×
32
    }
33

34
    /**
35
     * @see https://developers.podio.com/doc/stream/get-global-stream-80012
36
     */
37
    public static function get(PodioClient $podio_client, $attributes = array())
38
    {
39
        return self::listing($podio_client, $podio_client->get("/stream/", $attributes));
×
40
    }
41

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

50
    /**
51
     * @see https://developers.podio.com/doc/stream/get-space-stream-80039
52
     */
53
    public static function get_for_space(PodioClient $podio_client, $space_id, $attributes = array())
54
    {
55
        return self::listing($podio_client, $podio_client->get("/stream/space/{$space_id}/", $attributes));
×
56
    }
57

58
    /**
59
     * @see https://developers.podio.com/doc/stream/get-app-stream-264673
60
     */
61
    public static function get_for_app(PodioClient $podio_client, $app_id, $attributes = array())
62
    {
63
        return self::listing($podio_client, $podio_client->get("/stream/app/{$app_id}/", $attributes));
×
64
    }
65

66
    /**
67
     * @see https://developers.podio.com/doc/stream/get-user-stream-1289318
68
     */
69
    public static function get_for_user(PodioClient $podio_client, $user_id, $attributes = array())
70
    {
71
        return self::listing($podio_client, $podio_client->get("/stream/user/{$user_id}/", $attributes));
×
72
    }
73

74
    /**
75
     * @see https://developers.podio.com/doc/stream/get-app-stream-264673
76
     */
77
    public static function personal(PodioClient $podio_client, $attributes = array())
78
    {
79
        return self::listing($podio_client, $podio_client->get("/stream/personal/", $attributes));
×
80
    }
81
}
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