This commit is contained in:
2017-03-31 16:45:52 +02:00
parent 01f6f960dc
commit 116233d81a
4 changed files with 14 additions and 4 deletions
+5
View File
@@ -133,6 +133,11 @@ class Device implements JsonSerializable
return $this->modelDescription;
}
/**
* Get the device description URL
*
* @return string
*/
public function getUrl()
{
return $this->specUrl;
+1 -1
View File
@@ -72,7 +72,7 @@ class Discovery implements IteratorAggregate, JsonSerializable
public function jsonSerialize()
{
return $this->devices;
return array_values($this->devices);
}
}
+6 -1
View File
@@ -54,7 +54,12 @@ class Service implements JsonSerializable
return $this->scpdUrl;
}
public function getServiceUrl()
/**
* Get the service description URL
*
* @return string
*/
public function getUrl()
{
if (strpos($this->scpdUrl,"://")!==false) {
return $this->scpdUrl;