Skip to content

Commit

Permalink
Merge pull request #5 from luft-jetzt/remove-jms-serializer
Browse files Browse the repository at this point in the history
Remove jms serializer
  • Loading branch information
maltehuebner authored Jun 24, 2024
2 parents 830d79e + 80554f3 commit 70b9ffb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 89 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
}
],
"require": {
"php": "^8.3",
"jms/serializer": "^3.10"
"php": "^8.3"
},
"autoload": {
"psr-4": {
Expand Down
20 changes: 20 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 0 additions & 58 deletions src/Model/Station.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,78 +2,20 @@

namespace Caldera\LuftModel\Model;

use JMS\Serializer\Annotation as JMS;

/**
* @JMS\ExclusionPolicy("ALL")
*/
class Station
{
/**
* @JMS\Expose()
*/
protected ?string $stationCode = null;

/**
* @JMS\Expose()
*/
protected ?int $ubaStationId = null;

/**
* @JMS\Expose()
*/
protected ?string $title = null;

/**
* @JMS\Expose()
*/
protected ?float $latitude = null;

/**
* @JMS\Expose()
*/
protected ?float $longitude = null;

/**
* @JMS\Expose()
*/
protected ?string $cityName = null;

/**
* @JMS\Expose()
* @JMS\Type("DateTime<'U'>")
*/
protected ?\DateTime $fromDate = null;

/**
* @JMS\Expose()
* @JMS\Type("DateTime<'U'>")
*/
protected ?\DateTime $untilDate = null;

/**
* @JMS\Expose()
*/
protected ?int $altitude = null;

/**
* @JMS\Expose()
*/
protected ?string $stationType = null;

/**
* @JMS\Expose()
*/
protected ?string $areaType = null;

/**
* @JMS\Expose()
*/
protected ?string $provider = null;

/**
* @JMS\Expose()
*/
protected ?string $network = null;

public function getStationCode(): ?string
Expand Down
29 changes: 0 additions & 29 deletions src/Model/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,12 @@

namespace Caldera\LuftModel\Model;

use JMS\Serializer\Annotation as JMS;

/**
* @JMS\ExclusionPolicy("ALL")
*/
class Value
{
/**
* @JMS\Expose()
* @JMS\Type("string")
*/
protected ?string $stationCode = null;

/**
* @JMS\Expose()
* @JMS\Type("DateTime<'U'>")
*/
protected ?\DateTime $dateTime = null;

/**
* @JMS\Expose()
* @JMS\Type("float")
*/
protected ?float $value = null;

/**
* @JMS\Expose()
* @JMS\Type("string")
*/
protected ?string $pollutant = null;

/**
* @JMS\Expose()
* @JMS\Type("string")
*/
protected ?string $tag = null;

public function __construct()
Expand Down

0 comments on commit 70b9ffb

Please sign in to comment.