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

podio-community / podio-php / 5242896794

pending completion
5242896794

Pull #228

github

web-flow
Merge 257e05268 into ff22ba151
Pull Request #228: 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 2091 relevant lines covered (43.85%)

24.3 hits per line

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

0.0
/models/PodioOrganizationMember.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/organizations
4
 */
5
class PodioOrganizationMember extends PodioObject
6
{
7
    public function __construct(PodioClient $podio_client, $attributes = array())
8
    {
9
        parent::__construct($podio_client);
×
10
        $this->property('admin', 'boolean');
×
11
        $this->property('employee', 'boolean');
×
12
        $this->property('space_memberships', 'integer');
×
13

14
        $this->has_one('profile', 'Contact');
×
15
        $this->has_one('user', 'User');
×
16
        $this->has_many('spaces', 'Space');
×
17

18
        $this->init($attributes);
×
19
    }
20

21
    /**
22
     * @see https://developers.podio.com/doc/organizations/get-organization-member-50908
23
     */
24
    public static function get($org_id, $user_id, PodioClient $podio_client)
25
    {
26
        return self::member($podio_client->get("/org/{$org_id}/member/{$user_id}"), $podio_client);
×
27
    }
28

29
    /**
30
     * @see https://developers.podio.com/doc/organizations/get-organization-members-50661
31
     */
32
    public static function get_for_org($org_id, $attributes = array(), PodioClient $podio_client)
33
    {
34
        return self::listing($podio_client->get("/org/{$org_id}/member/", $attributes), $podio_client);
×
35
    }
36

37
    /**
38
     * @see https://developers.podio.com/doc/organizations/end-organization-membership-50689
39
     */
40
    public static function delete($org_id, $user_id, PodioClient $podio_client)
41
    {
42
        return $podio_client->delete("/org/{$org_id}/member/{$user_id}");
×
43
    }
44
}
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