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

podio-community / podio-php / 5883458979

16 Aug 2023 08:19PM UTC coverage: 47.564% (-5.9%) from 53.497%
5883458979

Pull #242

github

web-flow
Merge 89cf31048 into 51d68f28d
Pull Request #242: More fixes

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

996 of 2094 relevant lines covered (47.56%)

33.35 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($attributes = array())
8
    {
9
        parent::__construct();
×
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(PodioClient $podio_client, $org_id, $user_id)
25
    {
26
        return self::member($podio_client->get("/org/{$org_id}/member/{$user_id}"));
×
27
    }
28

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

37
    /**
38
     * @see https://developers.podio.com/doc/organizations/end-organization-membership-50689
39
     */
40
    public static function delete(PodioClient $podio_client, $org_id, $user_id)
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