1: <?php
 2: 
 3: /**
 4:  * An Eterminal instance
 5:  */
 6: class Syspay_Merchant_Entity_Eterminal extends Syspay_Merchant_Entity implements
 7:     Syspay_Merchant_Entity_ReturnedEntityInterface
 8: {
 9:     /**
10:      * The full URL to the Eterminal instance
11:      * @var string
12:      */
13:     private $url;
14: 
15:     /**
16:      * {@inheritDoc}
17:      */
18:     public static function buildFromResponse(stdClass $response)
19:     {
20:         $eterminal = new self();
21:         $eterminal->setUrl(isset($response->url)?$response->url:null);
22: 
23:         $eterminal->raw = $response;
24: 
25:         return $eterminal;
26:     }
27: 
28:     /**
29:      * Gets the The full URL to the eterminal instance
30:      *
31:      * @return string
32:      */
33:     public function getUrl()
34:     {
35:         return $this->url;
36:     }
37: 
38:     /**
39:      * Sets the The full URL to the eterminal instance
40:      *
41:      * @param string $url The url
42:      *
43:      * @return self
44:      */
45:     public function setUrl($url)
46:     {
47:         $this->url = $url;
48: 
49:         return $this;
50:     }
51: }
52: