Holds the coordinates of a pakcage in ClearlyDefined
Definition at line 17 of file Coordinate.php.
◆ __construct()
| Fossology\Lib\Data\Spasht\Coordinate::__construct |
( |
|
$obj | ) |
|
Set the object based on array returned by API
- Parameters
-
| array | $obj | Array containing the data |
- Exceptions
-
Definition at line 61 of file Coordinate.php.
◆ generateFromString()
| static Fossology\Lib\Data\Spasht\Coordinate::generateFromString |
( |
|
$coordinate | ) |
|
|
static |
Helper function to generate Coordinate from string
- Parameters
-
| string | $coordinate | Coordinates returned from definintions API |
- Exceptions
-
Definition at line 147 of file Coordinate.php.
◆ generateUrlString()
| Fossology\Lib\Data\Spasht\Coordinate::generateUrlString |
( |
| ) |
|
Generate API understandable URI
- Returns
- string
Definition at line 86 of file Coordinate.php.
◆ getName()
| Fossology\Lib\Data\Spasht\Coordinate::getName |
( |
| ) |
|
◆ getNamespace()
| Fossology\Lib\Data\Spasht\Coordinate::getNamespace |
( |
| ) |
|
◆ getProvider()
| Fossology\Lib\Data\Spasht\Coordinate::getProvider |
( |
| ) |
|
◆ getRevision()
| Fossology\Lib\Data\Spasht\Coordinate::getRevision |
( |
| ) |
|
◆ getScore()
| Fossology\Lib\Data\Spasht\Coordinate::getScore |
( |
| ) |
|
◆ getType()
| Fossology\Lib\Data\Spasht\Coordinate::getType |
( |
| ) |
|
◆ setScore()
| Fossology\Lib\Data\Spasht\Coordinate::setScore |
( |
|
$score | ) |
|
Set the score for this coordinate of package.
- Parameters
-
Definition at line 168 of file Coordinate.php.
◆ $name
| string Fossology\Lib\Data\Spasht\Coordinate::$name |
|
private |
◆ $namespace
| string Fossology\Lib\Data\Spasht\Coordinate::$namespace |
|
private |
◆ $provider
| string Fossology\Lib\Data\Spasht\Coordinate::$provider |
|
private |
◆ $revision
| string Fossology\Lib\Data\Spasht\Coordinate::$revision |
|
private |
◆ $score
| integer Fossology\Lib\Data\Spasht\Coordinate::$score |
|
private |
◆ $type
| string Fossology\Lib\Data\Spasht\Coordinate::$type |
|
private |
The documentation for this class was generated from the following file: