Commit c143688e authored by Dainis Abols's avatar Dainis Abols
Browse files

Changed defaultreturn type to XML

Version 1.0.1
parent 1541cf77
Pipeline #133 failed with stages
in 0 seconds
......@@ -15,8 +15,7 @@ $schools = $ViisSchools->getSchoolList();
| Method | Description |
| --------------------------------- | ----------------------------------------- |
| VIISSchools::setTestEnvironment() | Set test environment flag |
| VIISSchools::setReturnType() | Change return type. Possible options:<br>ReturnType::JSON *Default*<br>ReturnType::XML<br>ReturnType::ARRAY<br>ReturnType::OBJECT |
| VIISSchools::setReturnType() | Change return type. Possible options:<br>ReturnType::XML *Default*<br>ReturnType::JSON<br>ReturnType::ARRAY<br>ReturnType::OBJECT |
## Requirements
- PHP 7.2
- PHP SOAP Extension
{
"name": "luitd/viis-schools",
"version": "1.0.0",
"version": "1.0.1",
"description": "Connector for VIIS schools list. Fetches official active schools list.",
"type": "library",
"authors": [
{
"name": "Dainis Abols",
"email": "dainis@dainisabols.lv"
"email": "dainis@dainisabols.lv",
"role": "Developer"
}
],
"license": "GPL-3.0-or-later",
......
......@@ -35,7 +35,7 @@ class VIISSchools
*
* @var string
*/
private $returnType = ReturnType::JSON;
private $returnType = ReturnType::XML;
/**
* Live connection url
......@@ -119,16 +119,6 @@ class VIISSchools
$this->returnType = $returnType;
}
/**
* Retrieve environment type
*
* @return string
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* Return const list of available return types
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment