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

podio-community / podio-php / 5730982429

pending completion
5730982429

push

github

web-flow
Merge pull request #233 from podio-community/232-improvements-beta

fix: make podio_client first parameter of functions + remove podio_client member from models

235 of 235 new or added lines in 67 files covered. (100.0%)

916 of 2104 relevant lines covered (43.54%)

32.17 hits per line

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

93.33
/models/PodioEmbed.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/embeds
4
 */
5
class PodioEmbed extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
24✔
10
        $this->property('embed_id', 'integer', array('id' => true));
24✔
11
        $this->property('original_url', 'string');
24✔
12
        $this->property('resolved_url', 'string');
24✔
13
        $this->property('type', 'string');
24✔
14
        $this->property('title', 'string');
24✔
15
        $this->property('description', 'string');
24✔
16
        $this->property('created_on', 'datetime');
24✔
17
        $this->property('provider_name', 'string');
24✔
18
        $this->property('embed_html', 'string');
24✔
19
        $this->property('embed_height', 'integer');
24✔
20
        $this->property('embed_width', 'integer');
24✔
21

22
        $this->has_many('files', 'File');
24✔
23

24
        $this->init($attributes);
24✔
25
    }
26

27
    /**
28
     * @see https://developers.podio.com/doc/embeds/add-an-embed-726483
29
     */
30
    public static function create(PodioClient $podio_client, $attributes = array())
31
    {
32
        return self::member($podio_client, $podio_client->post("/embed/", $attributes));
×
33
    }
34
}
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