• 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/PodioAction.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/actions
4
 */
5
class PodioAction extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('action_id', 'integer', array('id' => true));
×
11
        $this->property('type', 'string');
×
12
        $this->property('data', 'hash');
×
13
        $this->property('text', 'string');
×
14

15
        $this->has_many('comments', 'Comment');
×
16

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

20
    /**
21
     * @see https://developers.podio.com/doc/actions/get-action-1701120
22
     */
23
    public static function get(PodioClient $podio_client, $action_id)
24
    {
25
        return self::member($podio_client, $podio_client->get("/action/{$action_id}"));
×
26
    }
27
}
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