backend/src/HistoricalMeteorological/Entity/Location.php
<?php namespace HistoricalMeteorological\Entity; /** * @Entity * @Table(name="locations") */class Location{ /** * @Id * @Column(type="string", name="id") * @var string */Avoid variables with short names like $id. Configured minimum length is 3. private $id; /** * @Column(type="string") * @var string */ private $name; /** * @Column(type="float") * @var float */ private $latitude; /** * @Column(type="float") * @var float */ private $longitude; /** * @Column(type="integer", name="amsl") * @var int */Avoid excessively long variable names like $distanceAboveMeanSeaLevel. Keep variable name length under 20. private $distanceAboveMeanSeaLevel; /** * @param string $id * @param string $name * @param float $latitude * @param float $longitude * @param int $distanceAboveMeanSeaLevel * @return Location */ public function hydrate(Method `hydrate` has 5 arguments (exceeds 4 allowed). Consider refactoring.
Avoid variables with short names like $id. Configured minimum length is 3. string $id, string $name, float $latitude, float $longitude,Avoid excessively long variable names like $distanceAboveMeanSeaLevel. Keep variable name length under 20. int $distanceAboveMeanSeaLevel ) { $this->id = $id; $this->name = $name; $this->latitude = $latitude; $this->longitude = $longitude; $this->distanceAboveMeanSeaLevel = $distanceAboveMeanSeaLevel; return $this; } /** * @return string */ public function getId():string { return $this->id; } /** * @param string $id * @return Location */Avoid variables with short names like $id. Configured minimum length is 3. public function setId(string $id):Location { $this->id = $id; return $this; } /** * @return string */ public function getName():string { return $this->name; } /** * @param string $name * @return Location */ public function setName(string $name):Location { $this->name = $name; return $this; } /** * @return float */ public function getLatitude():float { return $this->latitude; } /** * @param float $latitude * @return Location */ public function setLatitude(float $latitude):Location { $this->latitude = $latitude; return $this; } /** * @return float */ public function getLongitude():float { return $this->longitude; } /** * @param float $longitude * @return Location */ public function setLongitude(float $longitude):Location { $this->longitude = $longitude; return $this; } /** * @return int */ public function getDistanceAboveMeanSeaLevel():int { return $this->distanceAboveMeanSeaLevel; } /** * @param int $distanceAboveMeanSeaLevel * @return Location */Avoid excessively long variable names like $distanceAboveMeanSeaLevel. Keep variable name length under 20. public function setDistanceAboveMeanSeaLevel(int $distanceAboveMeanSeaLevel):Location { $this->distanceAboveMeanSeaLevel = $distanceAboveMeanSeaLevel; return $this; } The closing brace for the class must go on the next line after the body}