Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58e1a3f
commit 56d6f2c
Showing
7 changed files
with
246 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
namespace Nkey\DDG\API; | ||
|
||
use Generics\GenericsException; | ||
|
||
class ApiException extends GenericsException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,115 @@ | ||
<?php | ||
namespace Nkey\DDG\API\Model; | ||
|
||
/** | ||
* Model for RelatedTopics property | ||
* | ||
* @author Maik Greubel <greubel@nkey.de> | ||
*/ | ||
class Result | ||
{ | ||
|
||
|
||
/** | ||
* | ||
* @var string | ||
*/ | ||
private $result; | ||
|
||
/** | ||
* | ||
* @var Icon | ||
*/ | ||
private $icon; | ||
|
||
/** | ||
* | ||
* @var string | ||
*/ | ||
private $firstURL; | ||
|
||
/** | ||
* | ||
* @var string | ||
*/ | ||
private $text; | ||
|
||
/** | ||
* | ||
* @return string | ||
*/ | ||
public function getResult(): string | ||
{ | ||
return $this->result; | ||
} | ||
|
||
/** | ||
* | ||
* @param string $result | ||
* @return Result | ||
*/ | ||
public function setResult(string $result) | ||
{ | ||
$this->result = $result; | ||
return $this; | ||
} | ||
|
||
/** | ||
* | ||
* @return Icon | ||
*/ | ||
public function getIcon(): Icon | ||
{ | ||
return $this->icon; | ||
} | ||
|
||
/** | ||
* | ||
* @param Icon $icon | ||
* @return Result | ||
*/ | ||
public function setIcon(Icon $icon) | ||
{ | ||
$this->icon = $icon; | ||
return $this; | ||
} | ||
|
||
/** | ||
* | ||
* @return string | ||
*/ | ||
public function getFirstURL(): string | ||
{ | ||
return $this->firstURL; | ||
} | ||
|
||
/** | ||
* | ||
* @param string $firstURL | ||
* @return Result | ||
*/ | ||
public function setFirstURL(string $firstURL) | ||
{ | ||
$this->firstURL = $firstURL; | ||
return $this; | ||
} | ||
|
||
/** | ||
* | ||
* @return string | ||
*/ | ||
public function getText(): string | ||
{ | ||
return $this->text; | ||
} | ||
|
||
/** | ||
* | ||
* @param string $text | ||
* @return Result | ||
*/ | ||
public function setText(string $text) | ||
{ | ||
$this->text = $text; | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.