Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
7 / 7
Image
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
7 / 7
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
4 / 4
 getUrl
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getTitle
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getLink
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace SimpleMediumRSS;
use SimpleXMLElement;
class Image
{
    private $url;
    private $title;
    private $link;
    public function __construct(SimpleXMLElement $image)
    {
        $this->url = (string) $image->url;
        $this->title = (string) $image->title;
        $this->link = (string) $image->link;
    }
    /**
     * Get the value of url
     */ 
    public function getUrl()
    {
        return $this->url;
    }
    /**
     * Get the value of title
     */ 
    public function getTitle()
    {
        return $this->title;
    }
    /**
     * Get the value of link
     */ 
    public function getLink()
    {
        return $this->link;
    }
}